Hi, I am having a little trouble and was wondering if anyone could help. I wrote an asp page that executes a stored procedure to query a sql server database. The procedure returns a closed record object with the search results. The problem is I need to page through this recordset to display only 5 records at a time. However, I cannot use the stardard ADO PageSize, PageCount, or Absolute Page properties to return the results as there is no recordset object declaration. The code below is what I attempted to use to page, loop through and return a specified number of records based on a start and end index.
However this does not work.
Does anyone have any suggestions?
startRecordNum = 0
endRecordNum = 5
Do While Not rsSearchResults.EOF
and startRecordNum < endRecordNum
startRecordNum = startRecordNum + 1
However this does not work.
Does anyone have any suggestions?
startRecordNum = 0
endRecordNum = 5
Do While Not rsSearchResults.EOF
and startRecordNum < endRecordNum
startRecordNum = startRecordNum + 1