because just testing EOF does not tell you that there were no records in the record set, it just tells that you have reached the end of the record set. if you open a record set that contained no records then both would set.
for the 1st if block testing both does nothing for you as you do "nothing" with the fact you have no records.
for second if block the only thing you have determined is that you have reached the end of the record set.
take a look at this
Code:
if objRS.EOF AND objRS.BOF then
''image this logger sends email when error condition arise
Logger.Error("Error: No records found where we expected records")
else
''handle my record
end if
VS
Code:
if objRS.EOF then
''sending an email here for an empty record set could be a false positive
'' because just testing EOF means I have reached the end of a record set
'' not the record set was empty
Logger.Error("Error: No records found where we expected records")
else
''handle my record
end if