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

Is there an Access equivalent to LIMIT syntax

Status
Not open for further replies.

rycamor

Programmer
Jun 3, 1999
1,426
US
Hello all,

An example of a familiar SQL syntax I use in other DBs is:
Code:
SELECT * FROM myTable LIMIT 10,10

This uses the "LIMIT {offset},{rows}" syntax, meaning my SELECT query only returns 10 rows from the table, starting at the 10th row. LIMIT 50,25 would return 25 rows starting at the 50th row. (Or some DBs use "LIMIT {rows},{offset}")

This is very useful if you want to display "pages" of records, with a certain number of records per page, with a button to show "Next 10 records", etc... (I'm not using the Access front end, just making an ODBC connection from the PHP/webserver environment)

Is there any direct way to accomplish this with an Access query? Or can anyone show how they would accomplish this for web pages with ASP?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top