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 > Error Code!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-17-04, 19:44
zyberjock zyberjock is offline
Registered User
 
Join Date: Dec 2003
Location: Manila, Philippines
Posts: 17
Error Code!

Hi everyone, can anyone tell me what is the meaning of this error:


ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

Thank you..
Reply With Quote
  #2 (permalink)  
Old 02-17-04, 19:48
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
I would have thought the error message was quite obvious but...

You have a recordset.

You have reached the start of the recordset or the end of the recordset and have tried to move past the last record (on one end of the other).

Alternatively the record you are referencing may have been deleted.

Just as a note BOF = Beginning of file, EOF = End of file.

Last edited by rokslide; 02-17-04 at 19:52.
Reply With Quote
  #3 (permalink)  
Old 02-22-04, 15:26
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
When you try to get data from the record set, it is better to use

<%
If Not RS.BOF AND Not RS.EOF Then
/* get data from record set */
End If
%>
Reply With Quote
  #4 (permalink)  
Old 02-22-04, 15:33
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
or you could even use

<%
do while not rs.eof
' Do stuff with data
loop
%>
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