Link to home
Create AccountLog in
Avatar of Vasilis Dimitrakas
Vasilis DimitrakasFlag for Greece

asked on

Empty OR not empty recordset (Classic ASP/VBScript)

I know that if we want to check if a recordset is empty (no records found) we are doing like this:

If rst.BOF And rst.EOF Then

Open in new window


How I can do the exactly opposite? To check if the recordset has records?

How can we write
IS NOT BOF

Open in new window

and
IS NOT EOF?

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Fabrice Lambert
Fabrice Lambert
Flag of France image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Vasilis Dimitrakas

ASKER

@Fabrice Lambert: Thank you for the in-depth analysis of your answer!