J
justsomedumbguy
Thank so much it worked great! however I changed my mind on selecting Starting Tank & ending Tank I would like to select between dates
Expand AllCollapse All
Gerald Stanley said:Try something along the lines of
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 (((Customers.TankID) Between [Starting Tank #] And
[EndingTank#])) AND S1.[Date of Service] IN (SELECT
Max([Date of Service]) FROM Service WHERE Service.TankId =
S1.TankId)
Hope This Helps
Gerald Stanley MCSD"Service tabel" & "Customer Tabel'-----Original Message-----
I have a querry named "reminder labels" that get data fromservice date for multiple customers, every customer haswhat i need to do is have the querry get the newest
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 dateCustomers.[Last Name], Customers.Address, Customers.City,Here is my SQL
SELECT Customers.TankID, Customers.[First Name],
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#]));
.
Expand AllCollapse All