Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retreiving records by last date

Status
Not open for further replies.

Bronte1226

Technical User
Oct 18, 2002
123
US
I need to create a query that will select the record with the last date (most recent) entered. How do I do this?
 
SELECT A.*
FROM yourTable A INNER JOIN (
SELECT Max([Date field]) AS LastDate FROM yourTable
) B ON A.[Date field] = B.LastDate;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top