Microsoft Knowledge Base Email Alertz

KBAlertz.com: 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:

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








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

  1. Start Access, and then create a new blank database.
  2. Link to the dbo.Customers table in the Northwind database on a SQL Server.
  3. Use the Form Wizard to create a new form that is based on the dbo.customers table.
  4. Add the CustomerID, the CompanyName, the ContactName, and the ContactTitle fields.
  5. Add a subform and use the dbo.Customers table as the record source.
  6. Add the CustomerID and the Address fields and use the CustomerID field as the linked field.
  7. Open the form in Form view.
  8. Move to the Address field on the subform and make a change.
  9. 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
Keywords: 
kberrmsg kbprb KB302492
Retired KB ArticleRetired KB Content Disclaimer
This 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

Anonymous User Report As Irrelevant  
Written: 6/3/2005 3:30 AM
hello odbc refresh interval reduction does note work

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please