Avatar of SteveL13
SteveL13
Flag for United States of America asked on

How query only the THREE most recent records in a table

I am using query designer to attempt to select only the most recent THREE records in a table.  

Can this be done?
Microsoft Access

Avatar of undefined
Last Comment
Rey Obrero (Capricorn1)

8/22/2022 - Mon
Rey Obrero (Capricorn1)

if you have an autonumber field this will do it

select top 3 * from TableName
Order by [autonumberfield name] desc
SteveL13

ASKER
Once again I didn't explain the challenge very well.

I need to select the most recent three records from tblOpenOrders where Part_No = Forms!frmOpenOrders!txtPart_No

What should the SQL be for this?
SteveL13

ASKER
And the records in tblOpenOrders do have an autonumber record ID number.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.