Results 1 to 6 of 6
  1. #1
    fluffyvampirekitten is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    108

    Operation must use an updateable query - help

    I have an existing table - DuplicateSystemEPOS


    and query DuplicateSystemEPOS

    I would like to update my table ( NO_OF_INSV) column from a query result
    However , whenever I run this query , I keep getting operation must use an updateable query

    Anyone could help me ? Is there any other way to solve this .

    I have been trying to write other way of "UPDATE" statement but I keep getting the same error
    Below is the code that I'm using and my file is NOT "read-only" and yet access doesn't let me update

    Code:
    UPDATE DuplicateSystemEPOS INNER JOIN DuplicateSystemEPOSins 
    ON DuplicateSystemEPOS.GROUP_NO = DuplicateSystemEPOSins.GROUP_NO
    SET DuplicateSystemEPOSins.No_of_INSV =DuplicateSystemEPOS.NO_OF_INSV;
    Last edited by fluffyvampirekitten; 01-07-2016 at 09:49 PM. Reason: add info

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    Are you trying to save aggregate data? Saving calculated data is usually not advised, especially aggregate data. Aggregate data should be calculated when needed.

    You state table and query have the same name yet the names are different in the SQL.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    fluffyvampirekitten is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    108
    Yeah I was trying to save aggregate data.
    Is there any way to save an aggregate data ?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    Only alternative is VBA code that cycles through recordset object.

    As I said, it is not advised to save aggregate data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    fluffyvampirekitten is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jun 2015
    Posts
    108
    Quote Originally Posted by June7 View Post
    Only alternative is VBA code that cycles through recordset object.

    As I said, it is not advised to save aggregate data.

    Hmm I see..
    but I was trying to count how many LV_INS records where group no = group no because my table have duplicates
    here is the code

    Code:
    SELECT DISTINCT DuplicateSystemEPOS.GROUP_NO, Count(DuplicateSystemEPOS.LV_INS) AS NO_OF_INSV
    FROM DuplicateSystemEPOS
    GROUP BY DuplicateSystemEPOS.GROUP_NO;

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,967
    I am not sure what you want. Post examples of raw data and desired output.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 11-26-2013, 01:45 PM
  2. Operation must be an updateable query! Arg
    By redbull in forum Queries
    Replies: 6
    Last Post: 10-05-2012, 02:04 PM
  3. Operation must use an updateable query.
    By pericherlasuma in forum Access
    Replies: 1
    Last Post: 05-16-2011, 09:45 AM
  4. Operation must use an updateable query
    By skaswani in forum Queries
    Replies: 0
    Last Post: 12-23-2010, 11:59 PM
  5. Operation Must use an Updateable Query
    By Lady_Jane in forum Queries
    Replies: 2
    Last Post: 12-14-2010, 03:02 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