Extract dates

G

Guest

I have a table:

AutoNumb (PK)
IdNumber
Date

The ID number can appear in multiple records with different accompanying
dates. What might a query look like that would extract an ID number and it's
two most recent dates?

Thanx,

Rip
 
P

PC Datasheet

Create a query that includes IDNumber and Date. Sort Descending on Date.
Right click in the query window and choose properties in the dialog that
appears. Set the Top Values property to 2. The query will now return the two
most recent dates.

BTW, it is highly recommended that you change the name of the Date field.
Date is a reserved word in Access and you should not use it as a field name.
 
G

Guest

I would like the query to return the two most recent dates for each ID Number.

Thanx,

Rip
 

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