Write Conflict Error message (1 Viewer)

abette

Member
Local time
Today, 02:19
Joined
Feb 27, 2021
Messages
85
Hi there,
The user is getting a Write Conflict error message when using a Form in Access. He navigates to the last record and clicks to add a new record. This works successfully, however, when he navigates back to the previous record, he receives the Write Conflict message box.
Somethings to note: The form's record source is a table that was pushed to SQL server. I've encountered this message before in another database when trying to update a record that uses a SQL table.
Any suggestions?
1614881861573.jpg

Thank you!
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 23:19
Joined
Oct 29, 2018
Messages
21,467
Are you using any code to update the table from your form?
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 07:19
Joined
Sep 12, 2006
Messages
15,652
Often, the user himself causes this. If you go to a record, and edit the record, then open the same record in another form, you are likely to have the same record dirty in 2 forms, and you give yourself this error - which is the standard "optimistic locking" error.

One solution is to save any record edits before opening the popup form.

If you add record selectors, you will see the pencil indicator to show a dirty record. The new record might be getting dirty by initiallising some fields.
 

abette

Member
Local time
Today, 02:19
Joined
Feb 27, 2021
Messages
85
Is the macro using any UPDATE query or RunCode action?
No, the save is a straight Macro generated using the command button feature in the Design view window. It automatically generates the macro for you.
1614885354797.png
 

Users who are viewing this thread

Top Bottom