Solved

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

Posted on 2012-03-20
8
342 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
Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

 
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
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…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

751 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