I have a query which will produce a list of all the jobs we have approved. (shown below)
Code:
SELECT SiteT.Site_Name, [StatusO&MT].[O&M Status], JobT.[O&M Charged]
FROM SiteT INNER JOIN ([StatusO&MT] INNER JOIN JobT ON [StatusO&MT].[O&M_Status_ID] = JobT.[O&M_Status_ID]) ON SiteT.Site_ID = JobT.Site_ID
WHERE ((([StatusO&MT].[O&M Status])="approved"));
I would like to apply this to ONLY the jobs which are returned from the query:
Code:
UPDATE [JobT] SET [JobT].[ O_M_Charged] = '1';
I want the UPDATE code to be in a separate query so I can run it when I produce the report. That way I can make sure every time I make a report, we're not charging for the same job twice.
Obviously the second piece of code there will change the whole table not the query. Is there any special way to reference a query? or is it the same as referencing a table?
Or is there a different way to do this?
thanks in advance, Andy.
EDIT: after this works I can easily not include the ticked boxes.