Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    dajvwis is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    12
    I assume you mean to have Query7 be UF.

    Is your Query7 a Union query?
    Becuase using the code:
    UPDATE UF INNER JOIN [Input List] ON UF.number=[Input List].number SET [Input List].status = "a";

    Gives me the error: Operation must use an updatable query

    UPDATE [Input List] INNER JOIN UF ON UF.number=[Input List].number SET [Input List].status = "a";



    gives the same issue

  2. #17
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Can you attach your database? Just with the applicable tables and queries in it.

  3. #18
    dajvwis is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    12
    Here it is. Query2 and Query3 are my attempts at the Update Query.

  4. #19
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Very clever! I would never attempt something this complicated!

    All I can suggest is to make each query an update query - your UQ1,2 and 3, then you won't need to do the UF query.

    I also noticed that one of your records already has a status, your update will overwrite it. Is this ok?

    Also your two tables aren't connected. I see in the Relationships that the column Result ID is a link but your data doesn't support it. If it did then you could make one query.

  5. #20
    dajvwis is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    12
    That's for the compliment, my first time messing around in Access.

    The record with a status is just from me testing.

    I suppose I could change UQ1, 2 and 3 to update queries. Then I could run all 3 OnOpen for the Review form, making the record source query for null values. That could work.

    I'm looking into adding a "Refresh" function to my Review form, would that re-run the OnOpen? Or would I have to code that in?

  6. #21
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    No, OnOpen will only be executed once. The code is : Me.Requery - that will go back to the record source only, not rerun the queries. You would have to run the queries in the refresh button. Is you data changing a lot, maybe by other users? You could also use the OnTimer event which would refresh every x minutes.

    If your data is not correctly linked, check the box for Enforce Referencial Integrity in the Relationships window. That would prevent messed up data, say between the Input List and Master List tables. Testing can become very difficult when the data is not as it should be.

  7. #22
    dajvwis is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    12
    Data is going to be changing frequently, but only added, if I add Me.Requery and rerun the queries on each button click, it shouldn't be an issue. Input list is more or less junk data after it has been assigned a status, it just needs to be kept, and it will not be updated after a status is assigned. I've also changed the queries to only update records without a status.

    I am also going to have a record lock on, so that only one person may be in each record at a time.

  8. #23
    dajvwis is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    12
    Well, it works now, so I thank you for all your help in figuring this out.

  9. #24
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You're welcome! Glad it works.

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

Similar Threads

  1. Why does this recordset become not-updatable
    By bginhb in forum Programming
    Replies: 3
    Last Post: 08-24-2011, 05:29 PM
  2. Recordset not updatable from form
    By WendyCha in forum Forms
    Replies: 2
    Last Post: 08-09-2011, 12:30 PM
  3. Recordset not updatable...WHY?
    By jgelpi16 in forum Queries
    Replies: 3
    Last Post: 11-30-2010, 08:40 AM
  4. Recordset not updatable
    By Ogian in forum Forms
    Replies: 3
    Last Post: 10-20-2010, 12:08 AM
  5. The Recordset is not updatable
    By bullet_proof302 in forum Access
    Replies: 2
    Last Post: 11-07-2009, 12:13 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