?
Solved

Why RS.AbsolutePage is not supported?

Posted on 2000-02-16
2
Medium Priority
?
388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
daveamour earned 40 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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/…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

777 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