Checking for an empty recordset

  • Thread starter Thread starter Tony Wainwright
  • Start date Start date
T

Tony Wainwright

I have read of a way to check for an empty recordset using BOF and EOF but
can't remember how it is done. Can anyione help me?

Dim rst as Recordset
Dim strVSQL as string

strVSQL = "..."
set rst = DBEngine(0)(0).Openrecordset(strSQL)

If rst.BOF and rst.EOF Then
...
End If
 
Back
Top