Quantcast
Channel: Microsoft Dynamics GP Forum - Recent Threads
Viewing all articles
Browse latest Browse all 32807

VBA, ADO, and GP2010...Sample of updating a deleting SQL records needed for code upgrade.

$
0
0

I am upgrading some VBA code to GP2010 and need to upgrade the syntax for ADO. All of that was going fine until I hit the "update" code. I cannot find any samples or instructions for doing the following and everything still compiles. I know I can build up a text command but that seems like a big step backwards. Below is the old way which worked, does anybody know how or have a sample with the new method?

I bomb on the rst.AddNew line.

            rst.AddNew

           'rst("ITEMNMBR") = AlternateItems.ItemNumber.Value

           rst!ITEMNMBR = AlternateItems.ItemNumber.Value

           'rst("ALTPART_I") = AltPart.Value

           rst!ALTPART_I = AltPart.Value

           'rst("Exclude") = Exclude.Value

           rst!Exclude = Exclude.Value

           rst.Update


Viewing all articles
Browse latest Browse all 32807

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>