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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO disconnected recordset updating

Status
Not open for further replies.

Axoliien

Programmer
Aug 19, 2003
166
US
I have a database where I retrieve a record using ADO, then populate controls or bind the record to a form. The user can change data without affecting the actual table until they decide to save their changes. A timestamp is included in tables that will be accessed regularly so we can avoid overwriting data that was updated by another user.

I am trying to bypass the standard warning messages that Access gives you when someone else has already updated the record. Most importantly I am trying to recognize the record has been updated by another user and then ask the user to cancel, keep their data and highlight data changed by the other user, or discard the data and load the new data. I trapped the error on update as error -2147217864, however even if I try to bypass the error, Access takes over and asks to save the data to clipboard. Any idea how I can bypass Access for both actions, the error response and the clipboard form?
 
Perhaps DoCmd.SetWarnings False ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top