devxlogo

Easily Determine Whether a Recordset is Empty

Easily Determine Whether a Recordset is Empty

Use this quick and dirty routine to help find empty recordsets:

 Public Function IsEmptyRecordset(rs As Recordset) As Boolean	IsEmptyRecordset = ((rs.BOF = True) And (rs.EOF = True))End Function

devx-admin

Share the Post: