Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Access 2007 Update Query problem

  • 17-05-2011 11:29pm
    #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