Document Editing Problems

How to Resolve Microsoft Access Form Write Conflict

Emma BrownEmma Brown Oct 29, 2026 870 views

Question details

The user needs to resolve a Write Conflict error in Microsoft Access that occurs when updating a record via an update query while it is simultaneously being edited in a bound form.

How to Resolve Microsoft Access Form Write Conflict
Product
Microsoft Access
Device & OS
not provided
Scenario
Updating records in a database using a bound form and an update query at the same time.
Observed behavior
Access triggers a 'Write Conflict' error, preventing the current row from saving correctly when the form is closed.
Before you start

Identify the specific bound form and update query that are causing the conflict, and open your database in Design View to access the underlying VBA code and macros.

Solution 1Recommended

Force the Form to Save the Record Before the Update Query

Prevent the write conflict by saving the pending changes in the bound form before executing the update query.

When a user modifies data in a bound form, Access locks the record. If an update query tries to modify the same record before the form's changes are committed, a write conflict occurs. You can resolve this by programmatically saving the record first.

1
Open Form in Design View

Right-click your form in the navigation pane and select 'Design View'.

2
Access the VBA Code

Select the button (e.g., the 'Complete' button) that triggers the update query, go to the Property Sheet, click the 'Event' tab, and click the ellipsis (...) next to 'On Click' to open the VBA editor.

3
Add the Save Command

Insert the code `Me.Dirty = False` immediately before the line that executes your update query. This forces Access to save the current record and release the lock.

4
Test the Form

Save your VBA code, switch the form back to Form View, and test the process to ensure the Write Conflict error is resolved.

Force the Form to Save the Record Before the Update Query
Conflict Resolved: Saving the record releases the form's lock, allowing the update query to run smoothly without triggering a write conflict.
Free Microsoft Office alternative

Looking for a Lightweight Office Suite?

While Microsoft Access handles complex database management, your everyday document, spreadsheet, and presentation needs can be met with WPS Office. It is a free, lightweight, and highly compatible alternative to Microsoft Office, offering a familiar user interface and seamless migration for your daily workflow.

Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Free to download and use with a lightweight installation package.Familiar tabbed user interface, requiring zero learning curve to switch.Built-in PDF editor to easily view, edit, and convert documents.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Access show a 'Write Conflict' error?

A write conflict occurs when Access detects that a record has been changed by another process or user while you are editing it. This commonly happens if a bound form holds an open lock on a record while an underlying update query attempts to modify the exact same record.

What does Me.Dirty = False do in Access VBA?

In Access VBA, setting `Me.Dirty = False` forces the current form to save any pending changes to the underlying table. This commits the record and releases the edit lock, preventing conflicts when running subsequent queries.

How do linked SQL Server tables affect Access write conflicts?

Linked SQL Server tables can cause write conflicts in Access if the tables lack a primary key or a timestamp/rowversion column. Without a timestamp column, Access may struggle to track record changes accurately, leading it to falsely assume a conflict has occurred.

Can I update a record via SQL while it is open in a bound form?

It is generally not recommended to update the same record simultaneously via a bound form and an SQL query. If you must update the record via SQL, you must save the record in the form first. Alternatively, update the bound controls directly via VBA instead of executing a SQL UPDATE statement.