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

ADO Filter Property 1

Status
Not open for further replies.

Deadline

Programmer
Feb 28, 2001
367
US
Hi,
How to say whether the ADO filter property has had an effect on the Underlying RecordSet ?

I mean, what will be the result of applying filter, if there aren't any records satisfying the Filter Criterion ?
How should I check it ?


RR
 
Your recordset will be empty if no records match your filter criterion.
 
Swany,

Thank you very much.

So, SHould I use rs.EOF or Rs.RecordCount or IsEmpty(rs) to check ?


RR
 
the best way to check to see if a recordset is empty is the following check . . .


(rs.BOF AND rs.EOF)

If the record set is both at the beginning of file AND the end of file, then it is empty. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top