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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query based on last date 1

Status
Not open for further replies.

dulla

Technical User
Feb 3, 2003
54
how do i run a query to pull up the records that are affiliated with the last date of entry. i have a field called 'process date' to capture date, but i need to bring up the records that are the latest so i can display their current status. i don't want to do it by lastrecord because some records may be out of sequence and the only sequential identifier would be date. any ideas?? thanks.

ameen
 
SELECT *
FROM YOURTABLE
WHERE [PROCESS DATE]=(SELECT MAX([PROCESS DATE]) FROM YOURTABLE);

where "YOURTABLE" is the name of your table.

 
thanks mikevh, you're post helped me too!

______________________________
Sleep is a poor substitute for coffee.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top