Filter report for last date

trackmedic

Registered User.
Local time
Today, 12:27
Joined
Aug 20, 2001
Messages
115
I have a report that shows the dates of employee visits. I would like to filter this to show only the last date an employee visited.

example:

Instead of

John doe 01/01/2010
John doe 01/02/2010
John doe 01/03/2010

I would like the report to show

John Doe 01/03/2010

As usual, thanks in advance!
 
If those are the only fields being pulled then:
Code:
SELECT FullName, Max(DateField) As MaxDate
FROM TableName
GROUP BY FullName;

It may not work if you add more fields but try it out.
 
Where do I place this? In the query or in the date field on the report?
 
In the sql view of a blank query but you need to substitute the right field names and table name in.
 

Users who are viewing this thread

Back
Top Bottom