Hi
I think this is a simple question but I cant find the answer in help.
What I am trying to do is:
Use a parmater query to first sort for the date range then enter in a paramter query if a particluar client is not in the date range.
date range: 1/20 to 1/26
who is not in date range: smith
That works fine what I want is
date range: 1/20 to 1/26
who is not in date range: smith
who is not in date range: jones
who is not in date range: brown
attached is the sql code. I am clueless when it comes to the code I have been using the wizards to get this far, so please, if it is in sql please suggested where to put your suggestions.
Thank you
Mark
SELECT Date_last_done.Date_last_done, Customers.LastName, Date_last_done.CheckNumber, Date_last_done.ABA_number, Date_last_done.Check_Total
FROM Customers INNER JOIN Date_last_done ON Customers.CustomerID = Date_last_done.Customer_ID
WHERE (((Date_last_done.Date_last_done) Between [start date] And [end date]) AND ((Date_last_done.Payment_type)=1)) OR (((Date_last_done.Date_last_done)>#1/1/2003#) AND ((Customers.LastName)=[Which other customer not in Date Range?]) AND ((Date_last_done.Payment_type)=1))
ORDER BY Date_last_done.Date_last_done;
I think this is a simple question but I cant find the answer in help.
What I am trying to do is:
Use a parmater query to first sort for the date range then enter in a paramter query if a particluar client is not in the date range.
date range: 1/20 to 1/26
who is not in date range: smith
That works fine what I want is
date range: 1/20 to 1/26
who is not in date range: smith
who is not in date range: jones
who is not in date range: brown
attached is the sql code. I am clueless when it comes to the code I have been using the wizards to get this far, so please, if it is in sql please suggested where to put your suggestions.
Thank you
Mark
SELECT Date_last_done.Date_last_done, Customers.LastName, Date_last_done.CheckNumber, Date_last_done.ABA_number, Date_last_done.Check_Total
FROM Customers INNER JOIN Date_last_done ON Customers.CustomerID = Date_last_done.Customer_ID
WHERE (((Date_last_done.Date_last_done) Between [start date] And [end date]) AND ((Date_last_done.Payment_type)=1)) OR (((Date_last_done.Date_last_done)>#1/1/2003#) AND ((Customers.LastName)=[Which other customer not in Date Range?]) AND ((Date_last_done.Payment_type)=1))
ORDER BY Date_last_done.Date_last_done;