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

How to display PREV and NEXT values from a String

Status
Not open for further replies.

ElEye

IS-IT--Management
Nov 17, 2001
187
US
I have a table whose Primary Key is a Text column. I wish to display the PREVIOUS and NEXT values. If the Primary Key column were a Number this would be easy. But since it's a String I would have to poll the table to discern the preceding and following values. The question is how do I get the PREVIOUS and NEXT values as variables so I can response.write them?

The SELECT to display one record looks something like this:
strSQL = "SELECT * FROM [mytable] WHERE [PrimKey] = " & mykey

TIA!


Dave [idea]
[]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top