Hi Guys
Can someone help me do the following . I have a form (sorry I would have posted a image but apparently I need 10 posts) but the jist of it is
JobDate .... CompanyInvoiced PaidOut PaidOutDate
10/10/2011 ABC ................... £200.00
11/10/2011 XYZ ................... £200.00
12/10/2011 GHF ................... £200.00
This is created via the following query
SELECT tblOrderDetails.OrderDetailsID, tblDrivers.DriverID, tblDrivers.DriverName, tblDrivers.VATABLE, tblOrderDetails.OrderDate, tblPaymentsOut.VATRate, tblPaymentsOut.PaidOut, tblPaymentsOut.PAIDOUTDATE, tblClients.[Invoice To Co], tblClients.ClientCo
FROM tblDrivers INNER JOIN (tblClients INNER JOIN (tblOrderDetails INNER JOIN tblPaymentsOut ON tblOrderDetails.OrderDetailsID = tblPaymentsOut.OrderDetailsID) ON tblClients.ClientsID = tblOrderDetails.InvTag) ON tblDrivers.DriverID = tblPaymentsOut.DriverID
WHERE (((tblDrivers.DriverName)="ian shaw") AND ((tblPaymentsOut.PAIDOUTDATE) Is Null))
ORDER BY tblOrderDetails.OrderDate DESC;
What I want to be able to do is enter a date in the PaidOutDate (not always all of the records) and then produce a report on only those records (displayed on the form) that have the PaidOutDate populated.
I can easily produce a report if I just put IS NOT NULL in the reports query PAIDOUTDATE but that will show all of the records that have been paid previously as well.
I have been told I can pass a string thru to the report based on the form ???? but no matter how much I read the docmd openreport documentation nothing makes sense.
Help would be much appreciated. I have attached a test DB just in case.
The form is called FDRIVERPAID and the report RDRIVERPAID
Ian
Can someone help me do the following . I have a form (sorry I would have posted a image but apparently I need 10 posts) but the jist of it is
JobDate .... CompanyInvoiced PaidOut PaidOutDate
10/10/2011 ABC ................... £200.00
11/10/2011 XYZ ................... £200.00
12/10/2011 GHF ................... £200.00
This is created via the following query
SELECT tblOrderDetails.OrderDetailsID, tblDrivers.DriverID, tblDrivers.DriverName, tblDrivers.VATABLE, tblOrderDetails.OrderDate, tblPaymentsOut.VATRate, tblPaymentsOut.PaidOut, tblPaymentsOut.PAIDOUTDATE, tblClients.[Invoice To Co], tblClients.ClientCo
FROM tblDrivers INNER JOIN (tblClients INNER JOIN (tblOrderDetails INNER JOIN tblPaymentsOut ON tblOrderDetails.OrderDetailsID = tblPaymentsOut.OrderDetailsID) ON tblClients.ClientsID = tblOrderDetails.InvTag) ON tblDrivers.DriverID = tblPaymentsOut.DriverID
WHERE (((tblDrivers.DriverName)="ian shaw") AND ((tblPaymentsOut.PAIDOUTDATE) Is Null))
ORDER BY tblOrderDetails.OrderDate DESC;
What I want to be able to do is enter a date in the PaidOutDate (not always all of the records) and then produce a report on only those records (displayed on the form) that have the PaidOutDate populated.
I can easily produce a report if I just put IS NOT NULL in the reports query PAIDOUTDATE but that will show all of the records that have been paid previously as well.
I have been told I can pass a string thru to the report based on the form ???? but no matter how much I read the docmd openreport documentation nothing makes sense.
Help would be much appreciated. I have attached a test DB just in case.
The form is called FDRIVERPAID and the report RDRIVERPAID
Ian