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

New Error (for me anyway)

Status
Not open for further replies.

Gatorajc

MIS
Mar 1, 2002
423
US
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Function sequence error


This is the block of code and the line I am getting the error.

if RS1.EOF then
if not RS1.BOF then
RS1.MoveFirst
end if
end if

I am trying to back to the first record in the record set. I know it works, I moved it from a server that it was working on. But now I get this error that I have never seen before.


AJ
[americanflag]


 
seems a bit redundant to say both BOF and EOF
both equate to the same thing
if anything I would only do

if RS1.EOF OR RS1.BOF then
RS1.MoveFirst
end if

_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
true. I fixed it.

But I still get the same error.


AJ
[americanflag]


 
hmm.. according to the magic error guide [lol]
it is saying you are trying to access the data (rs) prior to the fact the data was sent with in the function. in this case the if statement. is this a possibility?

maybe this is jsut a order of operations issue

_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top