Solved

Write conflict when editing a linked table - linked to SQL Server 2000

Posted on 2008-10-09
7
814 Views
Last Modified: 2013-11-29
I have an Access database where the tables are linked to a SQL Server 2000 database. In one of the tables if I add or modify a record within Access (either via the table or a form view) I get a Write Conflict message (see attached). The record can be modified/added through SQL with no problem. I know that this error is because the SQL table has some fields of data type 'bit', but I don't know why this should be a problem or how to fix it, (other than to take the 'bit' fields out).

accesserror.jpg
0
Comment
Question by:Robijef
7 Comments
 
LVL 84
ID: 22676832
Why would you think this has anything to do with a Bit datatype field? Write conflicts can occur for several reasons and are not dependent on any particular datatype. While you may be having an issue with a Bit field, I have several SQL Server tables with Bit fields and can update them.

Did you recently upsize this database to SQL Server? If so, then Access uses the Bit datatype for the YesNo field ... in most cases, however, this translates over perfectly well.

The error you're getting typically means that you or another user has the same table/record open and have 'dirtied' the same record. This can occur when if you have a Form opened to that record and have made ANY change to the data - either through the interface or through code - and you then open the Table that form is built from and try to modify the same record.

This can also occur at the form level if you use VBA/SQL to try and update the same record as you're viewing on the form.
0
 

Author Comment

by:Robijef
ID: 22676949
Hi,
Well, because if I delete the bit fields then I can update no problem.
I didn't upsize, I created the The SQL tables independantly and linked them in Access, and there is definitely no other user using this database.
I have had the same issue on other databases linked to SQL.
Regards, Jeff
0
 
LVL 84
ID: 22680996
Then I'd presume that your Access application isn't properly setup. As I mention, I have several Access Frontends to SQL Server backends via linked tables, and I use the Bit datatype with no problems.

Any Triggers on the tables? Constraints?

0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:Robijef
ID: 22684828
Yes, I also have other applications where this works OK - but they would be Access 2000 rather than 2003.
I'm sure the problem is Access/SQL setup also, but exactly what - I don't know. There are no triggers or constraints on the SQL tables.
Also, the problem isn't constrained to just my PC which suggests its not an Office setup issue so re-installing office wouldn't make any difference.
Very weird I know, but when did I ever get a straightforward problem!!
0
 
LVL 5

Accepted Solution

by:
perezjos earned 125 total points
ID: 22837533
Hi
I had similar problem and I found my answer here http://support.microsoft.com/kb/280730/
After adding the default values to 0 on the bit fields (SQL table) all was fine !

Enjoy

Jose
 

0
 

Author Comment

by:Robijef
ID: 22865064
Worked fine
0
 

Expert Comment

by:animallover
ID: 37443745
Thank you, thank you!  I searched all over for a solution and once again was able to find it here.  I had 4 bit fields and once I set them all to default of 0 i was able to edit new records in my table.  I did have to delete and relink my table through ODBC in Access to make it possible.

You saved my day!
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel 2016 - Black cell borders 11 27
Vlookup nonexact IP address match 32 44
MS Access 03, TransferText, decimal places 8 43
Running Total in Access 4 13
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now