Question : Why am I receving write conflicts

I have an Access 2007 database with linked tables to a MS SQL server. There are about 20,000 records in a table. On the SQL server I added a new column and set the data type to bit. I did not set a default value. I opened the Access database and ran an update query setting the value of that field on all records to -1. I then added the field to an Access form as a Checkbox control. Looking at the table on the SQL server I can see that the value of the column is set to True. Looking at the table in Access I see that the value is -1.

Now if I try to create a new record or edit an existing record I get a write conflict error. Any ideas of how to fix this?

Answer : Why am I receving write conflicts

Taking a stab in the dark here as not too versed in MS SQL Server, but...

I beilieve a bit data type can only be a 1 or 0. You are trying to assign a -1 to it which shouldn't work.
(Not sure why it did in your update query.)

Unfortunately, Access uses -1 as True by default so you may need to change the data type of the field in your server table to SmallInt or some such.

Could perhaps try using an unbound checkbox and using code to negate -ve values before update.

eg.
Private Sub CheckBox1_Afterupdate()
  [FieldName] = - CheckBox1.Value
End Sub
Random Solutions  
 
programming4us programming4us