Share via

Access/SQL Write Conflict Error

Anonymous
2010-07-28T12:36:34+00:00

I am using Access 2007 as the frontend to a SQL table.  I can write a record to the table but I can not modify the record.  I get a Write Conflict error (This record has been changed by another user since you started editing it........ Copy to clipboard or drop changes).

I have received the error when I am the only person using the table.  What am I missing?

Thanks

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2010-07-28T15:01:52+00:00

    On Wed, 28 Jul 2010 14:17:24 +0000, John P Spencer [MVP] wrote:

    >Can you modify the table (or have it modified)?  If so try adding a field to the table(s) of the type TimeStamp.  The problem is that with certain versions of MS SQL Server, you can get the error you see unless you have the TimeStamp field.

    Yes.  In later versions of SQL Server the TimeStamp data type is now

    called RowVersion (a much more accurate name), although TimeStamp is

    still supported as an alternate.

    The write conflict can be caused by Bit fields with Null values, or by

    floating point data types.  If you avoid both of those, you should be

    fine without needing RowVersion.  For example, we don't use floating

    point data types, and we use SmallInt instead of Bit for yes/no

    fields.

    If you want to use RowVersion, you merely need to add it to your table

    and relink.  It does NOT need to be referenced in your Access queries

    or forms.  ODBC uses it to check concurrency.

    There is a slight downside to using RowVersion, as it eliminates the

    possibility of partial-row concurrency checking.  I've included this

    topic in my slide deck called "Best of Both Worlds" at our free J

    Street Downloads page: http://ow.ly/M2WI.

    Armen Stein

    Microsoft Access MVP

    www.JStreetTech.com

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-02-09T16:15:02+00:00

    SQL ver 2008

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2012-01-09T01:03:17+00:00

    What version of SQL (MS SQL Server?) are you writing to?

    Bac Maroc

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-05-27T05:58:15+00:00

    Armen, your recommendation to use timestamp saved my life, well a co-worker's life.  We've been working with a client for days now profiling SQL Server and trying to figure this "Write Conflict" error out during a record edit in a subform.  I just now ran across this article and am pleased to say our issue is now resolved.  Thanks!

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2010-07-28T14:17:24+00:00

    What version of SQL (MS SQL Server?) are you writing to?

    Can you modify the table (or have it modified)?  If so try adding a field to the table(s) of the type TimeStamp.  The problem is that with certain versions of MS SQL Server, you can get the error you see unless you have the TimeStamp field. 


    John Spencer Access MVP 2002-2005, 2007-2010 The Hilltop Institute University of Maryland Baltimore County

    Was this answer helpful?

    0 comments No comments