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

Detecting an empty recordset?

Status
Not open for further replies.

tycaine

Programmer
Feb 8, 2003
29
CA
As the subject suggests, I need to know how to detect an empty recordset.

In the DB I'm using there are three possible ways to find data, I need to search through the database first one way to see if there are any records, if none go to the second way and search to find records, if none move onto the third way...

Any help would be appreciated...

Thanks in advance!

T.C.
 
Ok, figured it out...

Code:
if (oRS.bof = true and oRS.eof = true) then
	response.write("Empty RecordSet")
else
	response.write("Display RecordSet Info")
end if

Thanks anyway, hope this helps someone!

T.C.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top