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

ASP Paging Error

Status
Not open for further replies.

AtomicChip

Programmer
May 15, 2001
622
CA
I'm trying to include paging in my asp page and everything works fine up until I try to set the recordset's absolute page property. When I try, I get the following error:

ADODB.Recordset error '800a0cb3'
Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype.

Here is the code for the recordset:


rs2.pagesize = pgSize
rs2.cachesize = pgSize
rs2.open "SELECT * FROM purch_products WHERE product_type = '" & rs.fields("type_id") & "';",con
pgCount = rs2.pagecount

'and then the error pops up here:
rs2.absolutepage = pgCurrent

Any suggestions? -----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
Did you specify CursorType? Access and SQL Server support bookmarks but some databases do not.


rs2.CursorType = 1 'adOpenKeySet
or
rs2.CursorType = 3 'adOpenStatic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top