Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Write Conflict When Trying To Update Table

    I have a linked SQL Server 2008 R2 table in my Access 2013 database. When I open the database, nothing opens (no forms, queries etc), and I am the only one in the database. I can run an update query and all fields will be updated as they should be, but if I open the linked table directly and try to type data into one of the rows, I get an error of "This record has been changed by another user"



    What setting needs to be changed so I can edit data directly in the table?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you create a query of that table including all fields, do you still have the issue?

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Quote Originally Posted by RuralGuy View Post
    If youn create a query of that table including all fields, do you still have the issue?
    If I run an update query on the table, no I do not have the issue.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    No, I meant just a simple select * query and open it and try to change something.

  5. #5
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    No, I get the same error if I build a Select query and try to alter any data.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    As you suspected there is something not right. Have you tried a Compact and Repair yet? How about *importing* everything into a fresh new db? That usually eliminates any corruption.

  7. #7
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,466
    Not sure matters but when you linked it in did you set the primary key when it asks, if not I don't think it lets you update. Or could be your odbc link, maybe create a fresh one and relink the table.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    As I recall, SQL Server likes Primary Keys on tables. Bulzie probably has something there.

  9. #9
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Quote Originally Posted by RuralGuy View Post
    As I recall, SQL Server likes Primary Keys on tables. Bulzie probably has something there.
    Yes, I linked it in with a primary key.

    I linked it using VBA DSNLESS linked tables

  10. #10
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Quote Originally Posted by RuralGuy View Post
    As you suspected there is something not right. Have you tried a Compact and Repair yet? How about *importing* everything into a fresh new db? That usually eliminates any corruption.
    I did a compact and repair, as well as created a fresh database and ONLY linked in this table and have the same result when trying to make modifications to the table

  11. #11
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,466
    In your BE, do you have another table you can link and see if that does same thing. Or create another table, link in and see if same issue. Might pinpoint if issue with your linking or specific to that table, etc.

  12. #12
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If it helps, I've asked for some additional SQL Server assistance.

  13. #13
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It "feels" like an issue with SQL Server or maybe DSN-Less connections. Here's a link so you might double check your connection:
    http://www.accessmvp.com/djsteele/DSNLessLinks.html

  14. #14
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What's really curious is the error message. I'd expect a permissions or a read-only error depending on circumstances. I've never seen the write conflict error with a table opened directly and nothing else open. When you run the update query, it's an Access query against the linked table, or a pass through query running on the server?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  15. #15
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    Quote Originally Posted by Bulzie View Post
    In your BE, do you have another table you can link and see if that does same thing. Or create another table, link in and see if same issue. Might pinpoint if issue with your linking or specific to that table, etc.
    I can link in any other table w/o issue. I also created a fresh copy of this database and linked in about 6 tables, and only ONE is giving this error.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Write Conflict?
    By batowl in forum Forms
    Replies: 4
    Last Post: 11-13-2014, 12:38 PM
  2. Write Conflict Help
    By jbailey4545 in forum Access
    Replies: 5
    Last Post: 01-24-2014, 02:25 PM
  3. Replies: 3
    Last Post: 08-06-2012, 03:29 PM
  4. Replies: 2
    Last Post: 02-11-2012, 09:41 AM
  5. Write Conflict After Update to 2010
    By cnelson in forum Access
    Replies: 5
    Last Post: 08-24-2011, 11:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums