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

First Five records of table

Status
Not open for further replies.

BettyGay

Programmer
Feb 23, 2005
12
US
How do I select the first 5 records in a table with 10 thousand records?
 
See TopValues Property in Access Help.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Keep in mind there really is no "first" without specifying an order to the records. IE:
SELECT TOP 5 *
FROM tblYourTable
ORDER BY EnterDateTime DESC;

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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top