Solved

Access User can't modify a record added to a linked SQL Server table

Posted on 2016-10-25
6
94 Views
Last Modified: 2016-10-25
I have a linked table in Microsoft Access 2003 that's linked to a table in SQL Server 2012.  The user specified in the connection has datareader permissions for the database in SQL Server, and for this one table has Grant permissions for Select, Update, and delete.  I can modify existing records and add a new records using this linked table, but I can't modify or delete records that *I* added using the linked table.  It gives me a message that the record was edited by another user when I try.  How can I fix this?
0
Comment
Question by:Declan_Basile
[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
  • 3
  • 3
6 Comments
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 41859394
Firstly, you don't specify the INSERT grant - is that present?

Secondly, how are you altering these records - via VBA, directly into the linked table - or via a form?


Kelvin
0
 
LVL 1

Author Comment

by:Declan_Basile
ID: 41859408
The user in the connection string has Insert, update, and delete permissions granted for this table.  I'm trying to update the record directly in the linked table and I'm getting a write conflict.  Also, I found out that if I add a record to the table under sa in SQL Server I still can't delete it or modify it in the linked table.  However, already existing records I can modify directly in the linked table.
0
 
LVL 1

Author Comment

by:Declan_Basile
ID: 41859417
I think I figured it out.  The table had a series of bit fields with no default values and "allow null" set.  I changed these fields to have a default value of "0" and now the users can edit and delete new records.  It wouldn't allow users to modify or delete records if the record had a null value for a bit field.  Did you ever hear about this limitation?
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 500 total points
ID: 41859420
Yes, an Access record is "read only" if it has a bit value that is not set - it must be o or 1 to allow the record to be edited. Well done for sorting it out.


Kelvin
0
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 41859422
It's a common oversight when migrating a database from Access to SQL Server. Generally any table built in SQL will have a default value set at the table level and be set to NOT NULL.


Kelvin
0
 
LVL 1

Author Closing Comment

by:Declan_Basile
ID: 41859490
Thanks.
0

Featured Post

Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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 SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

636 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