Results 1 to 5 of 5
  1. #1
    stalk is offline Competent Performer
    Windows 8 Access 2003
    Join Date
    May 2014
    Posts
    143

    Operation must use an updatable query - Access Interface with SQL Server table VIEW

    Any thoughts how to resolve Operation must use an updatable query.
    I clicked on help and found this link which is of no help..




    https://docs.microsoft.com/en-us/off...6)%26rd%3Dtrue

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    depending on the joins, you cannot update a table. some will, some wont.
    also
    you cannot update using the SUMMATION TOTALS on.

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Is your SQL view updatable in SSMS? If it is then you can make it updatable in Access (assuming you link it in) by creating a "pseudo" primary key :
    CurrentDb.Execute "CREATE INDEX PrimaryKeyIdx ON TableName (YourPKField) WITH PRIMARY"

    https://www.access-programmers.co.uk...access.157981/
    Cheers.
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #4
    stalk is offline Competent Performer
    Windows 8 Access 2003
    Join Date
    May 2014
    Posts
    143
    No summary fields in view or Access table.

    I have limited control on the SQL view which is READ-ONLY and NOT up datable from Access link

    I don't want to create primary key on my access table (accdb) it will mess up the existing work flow which is depending on the unique key which is a combination of 3 fields.

    I tried copy pasting the view as local table and it worked, I was able to update the field in Access. But I can't re-create the view as local table 10 times a day.

    Any other thoughts?

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Not sure I follow you. Do you want to update the SQL view (linked) in Access or do you want to import it and have it as an Access table. The link is not updatable because it doesn't have a primary key; if you use the "Create Index" statement (you can do it on your three fields https://docs.microsoft.com/en-us/off...oft-access-sql) you should become updatable. If instead you want to use it as a local table you can simply import it but you would loose previously updated data.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 05-08-2017, 04:53 AM
  2. Replies: 1
    Last Post: 04-24-2014, 05:10 PM
  3. Operation must use an updatable query-- error
    By bhushan98 in forum Queries
    Replies: 2
    Last Post: 12-01-2012, 11:32 AM
  4. Operation must be an updatable query
    By Lorlai in forum Queries
    Replies: 5
    Last Post: 02-02-2012, 02:04 PM
  5. Replies: 3
    Last Post: 01-03-2012, 12:28 PM

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