I have an existing query which goes as follows:
SELECT job.date, job[job id], clients.[company name], cars.car_registration, clients.[contact name], clients.discount, price_list.[customer price], 5*price)list.[customer price] AS total FROM price_list INNER JOIN (clients INNER JOIN (cars INNER JOIN job ON cars.[car id] = job.[car id]) ON clients.company = cars.company) ON price_list.[tyre id] = cars.[tyre id] WHERE (((job.date) Between #1/1/2003# And #2/1/2003#))
I want it to only display the last job for any specific car however. I can do this in a seperate query, but when i try to add any more than one other field to it (so more than just showing date and car) it screws up. I'd much prefer to get this all working in a single SQL query, but if anyone can get it working, whatever method it is, I'll be very glad. Thanks in advance...
fini123
SELECT job.date, job[job id], clients.[company name], cars.car_registration, clients.[contact name], clients.discount, price_list.[customer price], 5*price)list.[customer price] AS total FROM price_list INNER JOIN (clients INNER JOIN (cars INNER JOIN job ON cars.[car id] = job.[car id]) ON clients.company = cars.company) ON price_list.[tyre id] = cars.[tyre id] WHERE (((job.date) Between #1/1/2003# And #2/1/2003#))
I want it to only display the last job for any specific car however. I can do this in a seperate query, but when i try to add any more than one other field to it (so more than just showing date and car) it screws up. I'd much prefer to get this all working in a single SQL query, but if anyone can get it working, whatever method it is, I'll be very glad. Thanks in advance...
fini123