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

No record.

Status
Not open for further replies.

discusmania

IS-IT--Management
Oct 24, 2000
158
AP
Hello guys....
when there is no record of that criteria, my program will return this error. can someone tell me what to do?


ADODB.Field error '80020009'

Either BOF or EOF is True, or the current record has been deleted; the operation requested by the application requires a current record.

?



Thanks
new in web prog,
 
Hi.

I don't know your source, but try to insert this in source:

....
if(!your_recordset.EOF)
{
blabla .. your_recordset.MoveFirst();

}
....
After you open a recordset with a query and it is possible to return 0 record, you can't use any method of recordset. You have to examine you have at least 1 record.

regards, Kirilla

 
He's right, but try this syntax:

if not recordset.EOF then
'Do stuff here
end if

(his syntax was for ASP using JavaScript)

where recordset is the name of the recordset you created. You can't do
something = recordset("value")
if your SQL returned a blank recordset. You should always check for recordset.eof before attempting to do something with it.
Harold Blackorby
hblackorby@scoreinteractive.com
St. Louis, MO
 
Hi.

Harold has right, that is a JavaScript syntax, but I think it doesn't depend on you put in ASP, HTM, XSL or HTML.

regards, Kirilla
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top