By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,659 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,659 IT Pros & Developers. It's quick & easy.

Next, previous records from unique query pages

P: 229
Hi, I wonder if anyone could point mne in the right direction. I have many many individual members profile pages. Each has a unique query. eid=2933

I want to have a link on each profile page to the next profile page with a previous link too.

Every sample of pagination that I have found are where there are multiple results returned and therefore are split into pages in groups.

What I need and cannot seem to find is a way to move from one unique id page to another.

The pages in question have a request query at the top.

Expand|Select|Wrap|Line Numbers
  1. lngprofileid=CLng(Request("profileid"))
  2. If lngprofileid <> "" And lngprofileid <> 0 Then
  4.     Set rs=Server.CreateObject("ADODB.Recordset")
  5.     rs.CursorLocation = 3
and ending with

Expand|Select|Wrap|Line Numbers
  1. SQLQuery= SQLQuery & "  P.profileid=" & Clng(lngprofileid) & " "
Obviously I am not looping through multiple records so I cannot see how I would go to the next profileid

Thanks for any pointers
Much appreciated.
Feb 18 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.