Showing only the most recent date

T

thrava

Hi everyone,

I hope someone can help with this.
Im querying a table that has customer names, address and
date service was rendered to them.
The date field is formatted as date.

In the query pane, what formula do I write in
the "Criteria" so that only the most recent date for each
customers are shown? I think I need to use DMax, but I
have no idea what the syntax should be like.

Customer name field is called "CustName" Date field is
called "VisitDate"

Thanks
Thrava
 
A

AlCamp

Thrava,
You need to create a Totals query. Use a normal Select query, Select
View/Totals from the menu, and use Group By in the Totals: row of the
Customer column and Max in the Totals: row of VisitDate.
hth
Al Camp
 
T

Thrava

Thank you
-----Original Message-----
Thrava,
You need to create a Totals query. Use a normal Select query, Select
View/Totals from the menu, and use Group By in the Totals: row of the
Customer column and Max in the Totals: row of VisitDate.
hth
Al Camp




.
 

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

Top