ACC97: Write Conflict Error When You Try to Update Records in a Linked SQL Server Table
For a Microsoft Access 2000 version of this article, see 280730.
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 changes.
- Using SQL Server, open the table in Design view, and assign a default value of 0 (that is, zero) on all bit fields.
NOTE: With this option, you must update records entered before this change was made. See the next item for more information.
- Using SQL Server, run an Update Transact-SQL statement against the table, and set all bit fields that have a value of Null to a new value of 0 or 1.
- Using SQL Server, change the bit fields to some other data type, such as int or tinyint.
- Using SQL Server, add a timestamp field to the table.
Steps to Reproduce BehaviorThe following steps assume that you have an understanding of how to create tables in SQL Server, and that you are familiar with certain SQL Server tools such as Enterprise Manager.
Also assumed is that you are aware of how to create File, User, and System Data Source Names (DSN), and how to use a DSN to link a table to a Microsoft Access 97 database.
- In Microsoft SQL Server 7.0 or later, add a new table to the Pubs sample database, with the following table structure:
Column Name Data Type Length Allow Nulls fldID int 4 <unchecked> fldBit bit 1 <checked> fldDescrip varchar 50 <checked>
- Make the following Column property assignments to the fldID:
Identity: Yes Identity Seed: 1 Identity Increment: 1
- Set the fldID field as the primary key, and then close and save the table as Table1.
- Insert the following records into the Table1 table:
fldID fldBit fldDescrip 1 1 Record #1 2 <NULL> Record #2 3 0 Record #3 4 1 Record #4
- Close the table, and then create a User DSN that points to your SQL Server.
- Open any Access 97 database, and then link Table1 from the Pubs database into your database.
- Change the description of Record #1 to Record #0. Note that you can save your change.
- Try to change the description of Record #2 to Record #1. Note that you receive an error when you try to save your change.
Article ID: 278696 - Last Review: 12/05/2015 22:36:55 - Revision: 3.1
- kbnosurvey kbarchive kbprb KB278696