Solved

Why RS.AbsolutePage is not supported?

Posted on 2000-02-16
2
374 Views
Last Modified: 2008-03-17
I'm using DSN-less Access database.
This error occurs when the following line is added to the code.

objPagingRS.AbsolutePage = iPageCurrent

Error:

ADODB.Recordset error '800a0cb3'

The operation requested by the application is not supported by the provider.

Pls advise why this application is not supported and any way to rectify it?
0
Comment
Question by:qiang8
2 Comments
 
LVL 19

Accepted Solution

by:
daveamour earned 10 total points
ID: 2526639
It may be that you are using the wrong type of cursor for your recordset.  I beleive that certain cursor types do not support the AbSolutePage property.

For example the following line uses a Forward only cursor

rs.Open strSQL, objADO_ComInfo, adOpenForwardOnly, adLockPessimistic, adCmdText

There are other types of cursors available as follows

adOpenForwardOnly
adOpenKeyset
adOpenDynamic
adOpenStatic

Try changing the cursor to a different type.  For example to change to a Statit cursor you would use

rs.Open strSQL, objADO_ComInfo, adOpenStatic, adLockPessimistic, adCmdText

Note that these names are constants which are declared in ADOVBS.INC so if you do not have this file included in your asp page then refer to the cursors by number rather than name.  The numbers are as follows

adOpenForwardOnly..... 0
adOpenKeyset.......... 1
adOpenDynamic......... 2
adOpenStatic.......... 3

So again to open a recordset with a static cursor referring to it by number you would use this

rs.Open strSQL, objADO_ComInfo, 3, adLockPessimistic, adCmdText

Hope this helps

Dave


0
 

Author Comment

by:qiang8
ID: 2526681
Thanks a lot. It is due to improper use of cursor type.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now