Checking for an empty recordset

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top