J
justsomedumbguy
I have a querry named "reminder labels" that get data from "Service tabel" & "Customer Tabel'
what i need to do is have the querry get the newest service date for multiple customers, every customer has multiple dates. I tried DMax("Date of Service","Service") but if john doe has a date 7/12/2004 which is the newest i will only get that date even though joe blows newest date is 4/25/2003 ,and i still need joes newest date
Here is my SQL
SELECT Customers.TankID, Customers.[First Name], Customers.[Last Name], Customers.Address, Customers.City, Customers.State, Customers.[Zip Code], Customers.[Filter?], Service.[Date of Service]
FROM Customers INNER JOIN Service ON Customers.TankID=Service.TankID
WHERE (((Customers.TankID) Between [Starting Tank #] And [EndingTank#]));
what i need to do is have the querry get the newest service date for multiple customers, every customer has multiple dates. I tried DMax("Date of Service","Service") but if john doe has a date 7/12/2004 which is the newest i will only get that date even though joe blows newest date is 4/25/2003 ,and i still need joes newest date
Here is my SQL
SELECT Customers.TankID, Customers.[First Name], Customers.[Last Name], Customers.Address, Customers.City, Customers.State, Customers.[Zip Code], Customers.[Filter?], Service.[Date of Service]
FROM Customers INNER JOIN Service ON Customers.TankID=Service.TankID
WHERE (((Customers.TankID) Between [Starting Tank #] And [EndingTank#]));