
March 21st, 2004, 10:36 PM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 5
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
using Absolute Page property of Recordset
Hi,
I am populating a asp page with a query that returns about 150 rows. I want to show 20 records per page. For this I am using the following code
Set objRsPartDtls = Server.CreateObject("ADODB.Recordset")
objRsPartDtls.Cursortype = adOpenStatic
objRsPartDtls.ActiveConnection = application("objConn")
strSelPartDtls = "select PartNumber, ExchngPartNumber, Product from PartDetails"
objRsPartDtls.PageSize = 20
objRsPartDtls.open strSelPartDtls
objRsPartDtls.AbsolutePage=CInt(CurrentPage).
however I get an error
ADODB.Recordset (0x800A0CB3)
Object or provider is not capable of performing requested operation.
Could someone please tell me the possible reason for this error
Thanx in advance
|