Solved

Help! Can't edit certain records; Access 2007 FE, MSSQL 2K8 BE

Posted on 2012-03-20
8
341 Views
Last Modified: 2012-06-27
Hello, I've got a problem that I is somehow related to a table in my database, but I can't figure out quite how or why, or why now, after having worked well for quite a while.

When I try to edit certain records in that table, via the Access FrontEnd, I get a "Write Conflict" error, with the dreaded "Copy to clipboard" or "Drop changes" buttons. Many/most other records can be edited just fine though.

This table is right in the middle of some complex relationships; it represents a "booking" which is right in between customers, trips, and payments, so there is a lot going on... given that, how am I to find what is fighting back?

I did install the full MSSQL 2008 R2 toolset, but it doesn't look like the debugging tools are there.

Ideas, anyone, please?

Thanks in advance!

--Jon
0
Comment
Question by:CoastalData
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
8 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 250 total points
ID: 37743180
I would say that this message is most common in situations where you are updating the same record from both a form and a recordset at the same time.
Are you sure you are not doing this?
0
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 250 total points
ID: 37743182
In your SQL table, check whether you have Nulls allowed on any boolean fields (allow nulls on these fields should be set to false -- you can default these fields to false).

Then check for Nulls in those boolean fields in existing records  if you have any, run an update query to set them to false.
0
 
LVL 3

Author Comment

by:CoastalData
ID: 37743244
It is true that there are both form and recordset operations, but the operations complete, the form has the correct data, and then you try to save the record, but get the error. Anyways, the recordset operations are read only.

Plus, why are only some records affected?

I already have a timestamp column; last night I read about checking for nulls in boolean fields, so I set them to default appropriately, and then I ran a SQL query to set the existing nulls (1000's of them) to their default values.

Most records work just fine, though, and don't exhibit this behavior at all, but the common thread is that the misbehaving records are coming in through the website, which adds some more complication, but I have a theory that the website is encountering errors from this table, which is not allowing updates.

Maybe.

Man, there's got to be a better way to get to the bottom of this, no?
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 3

Author Comment

by:CoastalData
ID: 37743349
I wonder where the data edit failure would be logged? in ODBC? or in MSSQL? or.. Event Viewer?
0
 
LVL 3

Author Comment

by:CoastalData
ID: 37748270
Ugh! So I made a new form, and guess what? It does not display this problem, but it is also lacking in some functionality.

I really need to get that old form working.

It just doesn't make any sense to me that some records work fine, and some don't, even though I've F8 stepped through every line of code in it to make sure that the same code gets executed every time, and that the underlying record of the form does not get modified via recordset. I even tried turning on various record locking options, to no avail.
0
 
LVL 3

Author Closing Comment

by:CoastalData
ID: 37773535
Well, despite my best efforts to make sure that such was not the case, I ultimately did find where that form was modifying the underlying record! That was the problem, and removing that code and creating a new form to replace the old one was the answer.

Thanks for your help!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

756 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