If the user manually reverts a change to a field in a linked table in Access resulting in the record being unmodified overall, the 'Write Conflict' error message will be displayed when attempting to save the record. An example would be that the user makes a single change to a record by changing a field from 10 to 20, and then without saving the record re-enters the original value of 10.
Office Pro Plus 2016
MySQL 8.028
To reproduce this behaviour:
- Create a test database in MySQL
CREATE SCHEMA test;
USE test;
CREATE TABLE testtable (
ID INT NOT NULL,
ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
col1 INT NULL DEFAULT NULL,
col2 INT NULL DEFAULT NULL,
PRIMARY KEY (ID))
ENGINE = InnoDB;
- Create an ODBC connection to the test database using a a user DSN and ANSI MySQL driver
- Create a blank access database and link to the testtable
- Open testtable and enter and save a couple of dummy rows. Change the value in one of the col fields. Without navigating away from the row or using undo, type the original value back into the field. Attempt to save the row.
I have deliberately included timestamp to demonstrate that this is not a fix.
I would appreciate advice from anyone who knows what causes this behaviour and how to prevent it.