D
DeltaVega
Guest
Hello everyone!
I'm trying to make a simple guestbook database with MS Access 2000 to be used by an ASP script.
What I need is a way to return only 5 records each time the query is called and a variable that tells the query where to start. So if the variable given to the query is 0 it will return records 1,2,3,4,5. If the variable is 5 it will give records 6,7,8,9,10. ..etc.
I can do this on the application level using ASP. But the problem is that the recordset it recieves contains all of the DB's records. So it would be faster to do on the database level, before the recordset reaches the script.
Right now, my query is nothing more than:
SELECT *
FROM Guestbook
ORDER BY [guestbook_date] DESC;
Hope you can help!
Bye!
I'm trying to make a simple guestbook database with MS Access 2000 to be used by an ASP script.
What I need is a way to return only 5 records each time the query is called and a variable that tells the query where to start. So if the variable given to the query is 0 it will return records 1,2,3,4,5. If the variable is 5 it will give records 6,7,8,9,10. ..etc.
I can do this on the application level using ASP. But the problem is that the recordset it recieves contains all of the DB's records. So it would be faster to do on the database level, before the recordset reaches the script.
Right now, my query is nothing more than:
SELECT *
FROM Guestbook
ORDER BY [guestbook_date] DESC;
Hope you can help!
Bye!