Query by Latest Date? (1 Viewer)

tkpstock

Cubicle Warrior
Local time
Today, 06:54
Joined
Feb 25, 2005
Messages
206
I have a table that contains two columns, Sample_ID and Test_Date.

Each Sample_ID can be tested perodically over a period of months. Sample_ID is part of a finite set. I would like to be able to write a query such that I get a list of individual Sample ID's (no duplicates) and the most recent date they were tested... is this possible just using a query?

Thanks!!
 

thart21

Registered User.
Local time
Today, 03:54
Joined
Jun 18, 2002
Messages
236
tkpstock,

When I need to accomplish this I use the "Last" or "Max" option in my query Total field. This pulls the data for the latest date for each record.

Toni
 

tkpstock

Cubicle Warrior
Local time
Today, 06:54
Joined
Feb 25, 2005
Messages
206
Oh my, that was such an easy answer, I'm embarrassed. I was trying the Max function but was getting aggregate function errors on other fields. When I backed out and re-did everything, it worked just fine.

Thanks!!
 

Users who are viewing this thread

Top Bottom