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

I am totally new to VB Script, but

Status
Not open for further replies.

Deltaflyer

Programmer
Oct 11, 2000
184
GB
I am totally new to VB Script, but i have used VB4-6 quite a bit.

I have recently started a new job and now have the task of rewriting a lot of old HTML pages into Interdev, with the backup of ASP.

I have come across these lines ( attached at end of text ) at the bottom of one of the pages i need to convert, and although i know what they are trying to do, it's not working and i can't get it working.

Does anyone out there know what i should use to replace "bookmark" to get this working?

The Error Message I Recieve When I Run The Page
-----------------------------------------------------------
ADODB.Recordset error '800a0cb3'
Object or provider is not capable of performing requested operation


The Script That I Am Currently Using
------------------------------------------

if oRecord.eof = true then
Response.Write "Exit at rec. num." & orecord.bookmark ....etc
~~~~~~~
Exit Do
Else
oRecord.Movenext
Response.Write "Record number " & orecord.bookmark
~~~~~~~
End If [sig][/sig]
 
I've never programmed in ASP, so please forgive if this is a naive response:

Try changing orecord to oRecord -- it appears as though you've mistyped the variable name (if case-sensitivity matters).

HTH, [sig]<p>Russ<br><a href=mailto:bobbitts@hotmail.com>bobbitts@hotmail.com</a><br><a href= is in</a><br>[/sig]
 
Thanks for the response rbobbit, but no i have already considered that matter,....unfortunately to no avail. [sig][/sig]
 
Try utilizing the intellisense in Interdev and see what options are available after orecord. then check out all the ones that seem like they might be helpful in the help files. I know that I have used that method a few times to finally figure out how to get something working.

I know that the recordset objects have a getBookmark and a setBookmark method that may provide you with some of the capability you seek (although I admit I am quite new to ASP as well and have not used either method myself)

Hope this helps. [sig]<p>Crystal<br><a href=mailto:crystals@genesis.sk.ca>crystals@genesis.sk.ca</a><br><a href= > </a><br>--------------------------------------------------<br>
Experience is one thing you can't get for nothing.<br>
-Oscar Wilde<br>
[/sig]
 
What type of database are you accessing? Which ADO provider are you using? [sig]<p>nick bulka<br><a href=mailto: > </a><br>[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top