If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Recordset.moveprevious

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-02, 17:01
ecnarongi ecnarongi is offline
Registered User
 
Join Date: Oct 2002
Posts: 2
Recordset.moveprevious

I have a problem going backwards in a recordset I can go forward w/o a problem but if I try going to the previous record I get the following error:

Operation is not allowed in this context.

here is my connection routine I made comments b/c these things were throwing errors.

SQLlookup = "SELECT * FROM prepress"

Set connList = server.createobject("ADODB.Connection")
connList.ConnectionString = aConnectionString
'connList.CursorLocation = adUseClient
connList.open

Set results = server.createobject("ADODB.Recordset")
results.ActiveConnection = connList
results.CursorType = adOpenKeyset
'results.LockType = adLockOptimistic
results.Source = SQLlookup
results.Open

I've tried using different locktypes and cursor types but nothing seems to work. All help is appreciated. Thanks
Reply With Quote
  #2 (permalink)  
Old 10-30-02, 09:48
ecnarongi ecnarongi is offline
Registered User
 
Join Date: Oct 2002
Posts: 2
I needed to include this <!--METADATA TYPE="typelib" uuid="00000205-0000-0010-8000-00AA006D2EA4" --> and then everything worked thanks all.
Reply With Quote
  #3 (permalink)  
Old 10-30-02, 17:56
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
This is the typelib for ado 2.5 - did you just have to update your mdac or was this just left out of your page ?
Reply With Quote
  #4 (permalink)  
Old 05-08-03, 05:16
noamikon noamikon is offline
Registered User
 
Join Date: May 2003
Posts: 1
hi,
i tried to add the metadata line in the beggining of my asp file, like this:

<%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<!--METADATA TYPE="typelib" uuid="00000205-0000-0010-8000-00AA006D2EA4" -->

i still cant use moveprevious and get that damn error "cant use in this context.."

what did i do wrong?

thanks, noam
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On