how to return record with latest date

J

Joe168

I have a query with a date field. How do I write in the criteria to
retrieve the record with latest date?

Thanks!

Joe
 
M

Marshall Barton

Joe168 said:
I have a query with a date field. How do I write in the criteria to
retrieve the record with latest date?


SELECT TOP 1 table.*
FROM table
ORDER BY thedatefield DESC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top