oldgoldone
Technical User
I have a querry named "reminder labels" that get data from
"Service tabel" & "Customer Tabel'
what i need to do is have the query ask the user what "next due dates" they whant to search for then get the "newest service dates" fore each customer I have got the part were the query get the newest service dates but cant get next due date range part
"SQL so far"
SELECT Customers.TankID, Customers.[First Name], Customers.[Last Name], Customers.Address, Customers.City, Customers.State, Customers.[Zip Code], Customers.[Filter?], S1.[Date of Service]
FROM Customers INNER JOIN Service AS S1 ON Customers.TankID = S1.TankID
WHERE (((S1.[Date of Service]) In (SELECT Max([Date of Service]) FROM Service WHERE Service.TankId = S1.TankId)));
"Service tabel" & "Customer Tabel'
what i need to do is have the query ask the user what "next due dates" they whant to search for then get the "newest service dates" fore each customer I have got the part were the query get the newest service dates but cant get next due date range part
"SQL so far"
SELECT Customers.TankID, Customers.[First Name], Customers.[Last Name], Customers.Address, Customers.City, Customers.State, Customers.[Zip Code], Customers.[Filter?], S1.[Date of Service]
FROM Customers INNER JOIN Service AS S1 ON Customers.TankID = S1.TankID
WHERE (((S1.[Date of Service]) In (SELECT Max([Date of Service]) FROM Service WHERE Service.TankId = S1.TankId)));