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
*This post is locked for comments