Hi all,
I have the following code in a select query:
SELECT qryJobswithNoDeliveriesintheLast3months.JobNo, Max(qryJobswithNoDeliveriesintheLast3months.ActualDate) AS MaxOfActualDate, tblJob.JobId, tblJob.Customer, tblJob.ContactName, tblJob.ContactNo1, tblJob.StreetAddress, tblJob.Suburb, tblJob.CompletedJob
FROM tblJob RIGHT JOIN qryJobswithNoDeliveriesintheLast3months ON tblJob.JobId = qryJobswithNoDeliveriesintheLast3months.JobNo
GROUP BY qryJobswithNoDeliveriesintheLast3months.JobNo, tblJob.JobId, tblJob.Customer, tblJob.ContactName, tblJob.ContactNo1, tblJob.StreetAddress, tblJob.Suburb, tblJob.CompletedJob
HAVING (((Max(qryJobswithNoDeliveriesintheLast3months.ActualDate))<#6/30/2004#) AND ((tblJob.CompletedJob)=False));
I need to update the yes/no field "Completed Job" from "False" to "True" based on the criteria in the code. I have tried converting this query to an update query but it does not work properly. Am I doing this the correct way or is there some other way to approach this. Any help would be of benefit.
Thanks in advance.
I have the following code in a select query:
SELECT qryJobswithNoDeliveriesintheLast3months.JobNo, Max(qryJobswithNoDeliveriesintheLast3months.ActualDate) AS MaxOfActualDate, tblJob.JobId, tblJob.Customer, tblJob.ContactName, tblJob.ContactNo1, tblJob.StreetAddress, tblJob.Suburb, tblJob.CompletedJob
FROM tblJob RIGHT JOIN qryJobswithNoDeliveriesintheLast3months ON tblJob.JobId = qryJobswithNoDeliveriesintheLast3months.JobNo
GROUP BY qryJobswithNoDeliveriesintheLast3months.JobNo, tblJob.JobId, tblJob.Customer, tblJob.ContactName, tblJob.ContactNo1, tblJob.StreetAddress, tblJob.Suburb, tblJob.CompletedJob
HAVING (((Max(qryJobswithNoDeliveriesintheLast3months.ActualDate))<#6/30/2004#) AND ((tblJob.CompletedJob)=False));
I need to update the yes/no field "Completed Job" from "False" to "True" based on the criteria in the code. I have tried converting this query to an update query but it does not work properly. Am I doing this the correct way or is there some other way to approach this. Any help would be of benefit.
Thanks in advance.