Actually, oldest should be:
ORDER BY OrderDateField
and most recent should be:
ORDER BY OrderDateField DESC
This may return more than 5 if there are duplicate order dates. You would need to add another field to the ORDER BY clause.
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
The question caught me at first since you would think if the OP knew how to get the single oldest, they would know how to get the 5 oldest.
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.