Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 302492 - Last Review: January 31, 2007 - Revision: 3.1
ACC97: "The Data Has Been Changed. Another User Edited This Record..." Error Message with Linked SQL Tables
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.
MORE INFORMATION
Steps to Reproduce the Behavior
- Start Access, and then create a new blank database.
- Link to the dbo.Customers table in the Northwind database on a SQL Server.
- Use the Form Wizard to create a new form that is based on the dbo.customers table.
- Add the CustomerID, the CompanyName, the ContactName, and the ContactTitle fields.
- Add a subform and use the dbo.Customers table as the record source.
- Add the CustomerID and the Address fields and use the CustomerID field as the linked field.
- Open the form in Form view.
- Move to the Address field on the subform and make a change.
- Move to the ContactTitle field on the main form and edit the field. Note that you receive the error message that is mentioned in the "Symptoms" section of this article.
APPLIES TO
- Microsoft Access 97 Standard Edition
Retired KB Content DisclaimerThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please