Hello,
I have the following code I use for previous and next buttons with a table that has an autonumber field as the primary key, so aff is numeric. Simple and works fine.
aff=Request.QueryString("aff"
nextaff=aff+1
prevaff=aff-1
response.Write "<td valign=top><input type=submit name=next value='NEXT' onclick=self.location.href=('?aff=" & nextaff & "')><br>"
response.Write "<input type=submit name=next value='PREV' onclick=self.location.href=('?aff=" & prevaff & "')>"
Problem: I have another use for this code but the table doesn't have an autonumber field as the primary key and I don't know how to modify the above code so I can use the previous and next buttons. I don't need anything complicated like paging, just previous and next. Only one record at a time. I hope somebody can help with this. Thanks in advance.
I have the following code I use for previous and next buttons with a table that has an autonumber field as the primary key, so aff is numeric. Simple and works fine.
aff=Request.QueryString("aff"
nextaff=aff+1
prevaff=aff-1
response.Write "<td valign=top><input type=submit name=next value='NEXT' onclick=self.location.href=('?aff=" & nextaff & "')><br>"
response.Write "<input type=submit name=next value='PREV' onclick=self.location.href=('?aff=" & prevaff & "')>"
Problem: I have another use for this code but the table doesn't have an autonumber field as the primary key and I don't know how to modify the above code so I can use the previous and next buttons. I don't need anything complicated like paging, just previous and next. Only one record at a time. I hope somebody can help with this. Thanks in advance.