You may receive an error message when you try to save an edited record that is based on a multi-table view in Access (837937)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article applies only to a Microsoft Access project (.adp).
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMSWhen you edit a record in a form that is based on a multi-table view, and you are working in a multi-user environment, you may be unsuccessful when you try to save the changes to the record. You may also receive the following error message in the Write Conflict dialog box: This record has been changed by another user since you started editing it. If you save the record, you will overwrite the changes the other user made.
Copying the changes to the clipboard will let you look at the values the other user entered, and then paste your changes back in if you decide to make the changes.
If you click either Copy to Clipboard or Drop Changes in the Write Conflict dialog box, you may notice that the changes that you made to the record are undone, and that the changes to the record that were made by the other user are now visible. However, if you edit the same record again, and you try to save the record, you may receive the error message that is mentioned in the "Symptoms" section again. You may also notice the error message that is mentioned in the "Symptoms" section intermittently when you click Save Record. Note You may not see this behavior when you use Microsoft Access 2000. WORKAROUNDTo work around this problem, use one of the following methods: - Update the form that is based on the multi-table view
On the first occurrence of the error message that is mentioned in the "Symptoms" section, you must click either Copy to Clipboard or Drop Changes in the Write Conflict dialog box. To avoid the repeated occurrence of the error message that is mentioned in the "Symptoms" section, you must update the recordset in the form before you edit the same record again.
Note To update the form, click Refresh on the Records menu. - Use a main form with a linked subform
To avoid the repeated occurrence of the error message that is mentioned in the "Symptoms" section, you can use a main form with a linked subform to enter data in the related tables. You can enter records in both tables from one location without using a form that is based on the multi-table view.
To create a main form with a linked subform, follow these steps:- Create a new form that is based on the related (child) table that is
used in the multi-table view. Include the required fields on the form.
- Save the form, and then close the form.
- Create a new form that is based on the primary table that is used in
the multi-table view. Include the required fields on the form.
- In the Database window, add the form that you saved in step 2 to
the main form.
This creates a subform. - Set the Link Child Fields property and
the Link Master Fields property of the subform to the name of the field or fields that are
used to link the tables.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.REFERENCES
For more information about handling concurrent updates in Access 2002, click Microsoft Office Access Help on the
Help menu, type About handling concurrent updates in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about handling concurrent updates in Access 2003, click Microsoft Access Help on the Help menu, type About handling concurrent updates in the Search for box in the Assistance pane, and then click Start searching to view the topic.
For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
295225
ACC2002: Write Conflict error when you add a record in multi-table view
Modification Type: | Minor | Last Reviewed: | 2/1/2005 |
---|
Keywords: | kbUser kbADP kberrmsg kbprb KB837937 kbAudDeveloper kbAudEndUser |
---|
|