Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write Conflict In Access Table linked to SQL

Status
Not open for further replies.

u104741

MIS
Aug 26, 2003
94
GB
I have a problem where by i cannot edit any records in a particular table within Access. The table is a linked SQL table. I get the Write conflict error mesage telling me that " this record has been changed by another user...etc... ???

If i open the table in Enterprse Manager i can edit the records ok.
I have checked that the table has a key field in SQL as i understand that can be a problem in Access, but what else could it be??

I hope some of you good people can help me.. its driving me nuts!!

G
 
Is this an ODBC linked table from sql server? What are all the data types listed in the select statement? For example, varchar, int, bit, tinyint etc... Does the table have an unique index that you are trying to update? Can you paste in your select statement.
 
thanks for pointing me in the right direction... from your message i got suspecious that maybe i had a funny data type or somthing similar.. So starting removing fields one by one, re-attaching the table to my mdb file via ODBC and re-testing a record update.

I found it did not like a field that had a 'bit' data type as, as soon as i removed that field it worked... adding back the field and it failed again... ???

I have now recreated my table from scratch, with the 'bit' field and it is now ok???? most bizzare...
cheers
G
 
You hit on it, that was what I was looking for. The bit data type does not map correctly through odbc. If you really need the bit field you will need to bypass odbc or have the sql server dba change to another field type. You can retrieve the records with ADO and won't have the same problem, or use a pass through query which will bypass odbc.
 
A little more background.

thread700-571073

thread700-677301
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top