DMax

G

Guest

I have a table with mileages for 10 vehicles. The values range from 0 upto
70,000. For each mileage record (aproximately every 3,000 miles) there is a
date at which the vehicle reached this milestone. In a report i want to
extract the most recent mileage record for each of the ten vehicles.

I have tried to use the Dmax function but i dont seem to have written the
formula correctly. Because the one column has the data for all ten vehicles,
I am finding it difficult to pull out the most recent mileage for EACH
vehicle, and not just the most recent mileage overall.

Any suggestions?

Crimbo
 
G

Guest

Create a new query
Select the table you are using
Select the two fields, car and mileage (double click on them)
From the ToolBar click on the button that has this symbol ∑ , (group by query)
Now, in the query there will be another row GROUP BY , in the mileage select
Max, now running the query should display a car with max mileage
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Maximum of two tables 1
Between Function 1
DMax expression 2
Form / Table Design 3
Pivot Chart 1
HELP - Finding Max/Min 2
How to set this up for a chart? 3
Self Join Query / Second highest value in query 1

Top