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

Weird error

Status
Not open for further replies.

platypus71

Technical User
Sep 7, 2005
68
US
I have a macro that is causing me some headaches.
The macro is accessed by pressing a button on a form. The form contains a subform which has data from Table1. At the bottom of the form are some data fields with data from Table2.

Here is the macro:

OpenQuery Query1 (updates Table1)
OpenQuery Query2 (updates Table2)
RunMacro Macro2 (this macro recalculates data based on the new contents of Table1, then updates some fields in Table2)

The error I get is "The data has changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record."

The end result is Query1 and Query2 worked. Macro2 didn't happen.

Any suggestions on how to make this work?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top