how to find the second largest date or a number from a field in ac

  • Thread starter Thread starter Jazz
  • Start date Start date
hi,
I need to find out the previous date than to the maximum date from a date field
This should do it:

SELECT TOP 1 *
FROM yourTable
WHERE yourDateField < DMax("yourDateField", "yourTable")


mfG
--> stefan <--
 

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

Back
Top