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

Recordset paging

Status
Not open for further replies.

Phonez

Technical User
Jan 16, 2002
58
GB
Does anyone know how to page through records properly.

I have got a messageboard on my site but when trying to view the next 5 records it does not seem to work.

The primary key is an autonumber which I am also having problems with because I keep getting a type mismatch error when I try to compare it with a variable.

Any help would be gratefull.
 
Check out this FAQ on recordset paging: faq333-186

With comparing variables, make sure you force their types to the same to make sure you are making a valid comparison...you can't compare a string and an integer, so if it's a number like the autonumber PK field, compare like so...

If rs("autoNumberPK") = CInt(myVariable) Then
Response.write "They are the same"
Else
Response.write "Not the same"
End If

Hope this helps. -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top