Thanks for the reply, but this is not what I am really looking for.
That page basically shows a way to retrieve a select number of entries from a database, so each click of the NEXT button would retreive the next 10 records, etc.
In my situation, I am retreiving all entries from the database, printing them in one long list down the page. I just want a way to skip between the entries, one at a time.
It would be as simple as just pulling the id from the database, and incrementing or decrementing it as needed. This however will break when a record is deleted from the database though. I grab the id from an autonumber field, so if I have entries 1,2,3,4,5 it works fine. If I delete #3, the database now holds 1,2,4,5 , and the NEXT button will not work on id=2, the PREV will not work on id=4.
Faced with this problem, I received some helpful advice that a self join could allow me to compare the id field to itself within the same table, and thus figure out which ids were before and after a specific id. This is where I am at currently, as this works great for everything BUT the first and last entries returned.
I am imagining some sort of conditional test to determine if an id is the first or last entry in the database, I just have yet to visualize what this conditional is...
-Andrew