About
Pricing
Community
Teams
Start Free Trial
Log in
SteveL13
asked on
12/6/2013
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
4
1
Last Comment
Rey Obrero (Capricorn1)
8/22/2022 - Mon
Rey Obrero (Capricorn1)
12/6/2013
if you have an autonumber field this will do it
select top 3 * from TableName
Order by [autonumberfield name] desc
SteveL13
12/6/2013
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!txtPar
t_No
What should the SQL be for this?
SteveL13
12/6/2013
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)
12/6/2013
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.
select top 3 * from TableName
Order by [autonumberfield name] desc