Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Vendors Table

Status
Not open for further replies.

Bluejay07

Programmer
Mar 9, 2007
780
CA
Hello,

I have two sets of code which are virtually identical for AR and AP.

Within the code, I am checking if the customer/vendor exists to determine if I need to perform a .insert or a .update.

The code works perfectly fine with AR, however, I receive the following error when AP tries the .update.

"Record has been modified by another program."

I do not have any problems with the .insert, only with the .update.

Any suggestions on why this could be occuring?

Thanks.
 
This normally happens if you do not .Read the record before .Update
 
Thanks for the reply ettienne.

I will try using a .read before the update.
 
Remember to do the .Read first, then put your changes and then .Update - if you .Read after you put then your changes will be lost.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top