ACC97: "The Data Has Been Changed. Another User Edited This Record..." Error Message with Linked SQL Tables (302492)
The information in this article applies to:
This article was previously published under Q302492 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you edit a field on a subform that has a linked SQL table as its record source, and you try to edit a field on the main form that is based on the same linked SQL table, you may receive the following message:
The data has been changed. Another user edited this record and saved the changes before you attempted to save your changes. Re-edit the record.
When you click OK, you can continue to edit, and then you can save the record.
CAUSE
This error occurs when you start to edit a record that has changed since you began viewing it. The record is updated in the table, but the record source of the main form has not been refreshed to reflect the change.
This behavior is related to the ODBC Refresh Interval setting on the Advanced tab of the Options menu. If you have an ODBC interval of 1500 seconds and you wait 1500 seconds before you edit the record on the main form, you will not receive this error. However, setting the ODBC Refresh Interval to a low enough number to allow you to edit the record without receiving this error would cause an increase in network traffic.
RESOLUTION
To resolve this error, add Me.Parent.Requery to the AfterUpdate event of the subform.
Modification Type: | Major | Last Reviewed: | 9/27/2003 |
---|
Keywords: | kberrmsg kbprb KB302492 |
---|
|