Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Access 2007 Update Query problem

  • 18-05-2011 12:29AM
    #1
    Registered Users, Registered Users 2 Posts: 414 ✭✭


    So, I have a table and I want to update several records in that table. To identify the records I need to update I have a query.

    e.g.

    UPDATE My_Table
    SET My_Table.Field1=1
    WHERE My_Table.ID IN (SELECT ID FROM My_Query)

    My query is identifying the appropriate records, and by using various alternatives (joins etc) to the above I can get the query to display the appropriate result in the 'view' screen, but when I try and run the query it gives me an error "Operation must use an updateable query"

    e.g.

    UPDATE My_Table INNER JOIN My_Query ON My_Query.ID=My_Table.ID
    SET My_Table.Field1=1

    I've tried using a DLookup in the criteria instead of the sub_query, but that returns just a single result.


Advertisement