I have a table that contains class information (Classes). One of the fields is a yes/No field default 0 (No) named "Complete" The Key field in this table is (ClassID).
Before considering a Class complete I have a query (Completed Classes) that checks 2 items (must be done for Completion) and then returns the Keys (ClassID) of classes that meet the completed criteria. Using the Completed Classes query and the Classes table I am attempting to use an update query to change the "Complete" field in the Classes table to -1, or Yes. This is where the error occurs. I get the same error if I try to set the Complete field to Yes.
Here is the code for the Update query that is not running correctly:
I always seem to have issues with update queries when they depend on a Table to be updated and a query containing the key field.
Thanks,
Before considering a Class complete I have a query (Completed Classes) that checks 2 items (must be done for Completion) and then returns the Keys (ClassID) of classes that meet the completed criteria. Using the Completed Classes query and the Classes table I am attempting to use an update query to change the "Complete" field in the Classes table to -1, or Yes. This is where the error occurs. I get the same error if I try to set the Complete field to Yes.
Here is the code for the Update query that is not running correctly:
Code:
UPDATE [Classes] INNER JOIN [Completed Classes] ON [Classes].ClassID = [Completed Classes].ClassID SET [Classes].Complete = -1;
I always seem to have issues with update queries when they depend on a Table to be updated and a query containing the key field.
Thanks,