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?
SteveL13Asked:
Who is Participating?
 
Rey Obrero (Capricorn1)Connect With a Mentor Commented:
try this

select top 3 * from  tblOpenOrders
where tblOpenOrders.Part_No = Forms!frmOpenOrders!txtPart_No
Order by [record ID] desc
0
 
Rey Obrero (Capricorn1)Commented:
if you have an autonumber field this will do it

select top 3 * from TableName
Order by [autonumberfield name] desc
0
 
SteveL13Author Commented:
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?
0
 
SteveL13Author Commented:
And the records in tblOpenOrders do have an autonumber record ID number.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.