FIlter Information on Report

P

Paul

I am running a report and I want the ouput to be th emost recent date
asscociate with a record. An expample is the data has an case number in 1
column with various dates associated it in another column. I want the report
to printout the case number with the most recent date. So if case number
1234 has June 1, 2009 and June 2, 2009, it should printout case number 1234
in column A and June 2, 2009 in columnB.

How can create the selection criteria? Thank you in advance!
 
F

fredg

I am running a report and I want the ouput to be th emost recent date
asscociate with a record. An expample is the data has an case number in 1
column with various dates associated it in another column. I want the report
to printout the case number with the most recent date. So if case number
1234 has June 1, 2009 and June 2, 2009, it should printout case number 1234
in column A and June 2, 2009 in columnB.

How can create the selection criteria? Thank you in advance!

Create a query to filter the records.

SELECT YourTable.[CaseNumber], Max(YourTable.[CaseDate]) AS
MaxOfCaseDate
FROM YourTable
GROUP BY YourTable.[CaseNumber];

Change the table and field names to whatever your actual names are.

Make this query the record source for your report.
 

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