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!

Checking too see if recordset is Empty

Status
Not open for further replies.

Loggerhead2000

Programmer
Mar 23, 2003
11
US
I'm trying to find out if the recordset can back empty so that if it does I can perform certain tasks like the follow

If adorecordset.BOF or adoRecordset.EOF Then
msgBox "No matching records where found"
Else
msgbox "A matching record was found"
End If

It never gets to the "No Found" section of the if stmt. I've try a few other validation stmts but basically the same thing happen. Any help that you could give me would be great.

Thanks Timmeh
 
If both the Eof = true AND the Bof = true then
the recordset is empty
Else
Is contains something
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top