Hi Guy's
How can i run an update query after I've ran a report for for instance mileage reports?
To explain more clearly:
I run the following query. the query askes me for whom and what month. after I've provided the data, I get the report for all mileage.
What I want to accomplice is the field tblMileage.mileageClaimed is set to true and the field tblMileage.MileageClaimDate should get the current date, after the report has run and generated the pdf file I want to print.
Any suggestions?
How can i run an update query after I've ran a report for for instance mileage reports?
To explain more clearly:
Code:
SELECT tblMileage.EmployeeID, tblMileage.MileageDate, tblMileage.MileageDetails, tblMileage.MileageDistance, tblMileage.MileageClaimCost, tblMileage.MileageClaimed, tblMileage.MileageClaimDate, tblOrder.CAEJobNumber
FROM (tblMileage INNER JOIN tblCompany ON tblMileage.CompanyID = tblCompany.CompID) INNER JOIN tblOrder ON tblMileage.OrderID = tblOrder.OrderId
WHERE (((tblMileage.EmployeeID)=[Voor wie? M=1,L=2]) AND ((Month([MileageDate]))=[Welke maand]))
ORDER BY tblMileage.MileageDate DESC;
What I want to accomplice is the field tblMileage.mileageClaimed is set to true and the field tblMileage.MileageClaimDate should get the current date, after the report has run and generated the pdf file I want to print.
Any suggestions?