Report that shows only the most recent records

T

Tom Snider-Lotz

I've got a database that I use to keep track of events in the life cycl
of several products. The main table has fields for EventNumbe
(autonumber/key), Date, Product, and EventDescription. So each recor
corresponds to an event.

It's easy to generate a report that lists _all_ the events in the lif
of each product. What I'd like now is a report that lists only th
most recent event for each product -- basically a status report.

How do I do this?

Thanks in advance.

-- To
 
C

Chris

You need to base your report on a pair of queries

Qry1:
Select Product, max(EventDate) as LastDate From tblEvents
Group by Product

Qry 2:
Select * from tblEvents inner join Qry1 on
tblEvents.Product = Qry1.Product and
tblEvents.EventDate = Qry1.LastDate

Base your report on Qry2
 

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