Dim db as DAO.Database, rst as DAO.Recordset
Set db = CurrentDB
Set rst = db.OpenRecordset("Select * FROM Source"
If rst.RecordCount > 0 Then
'Add all code here
Else
MsgBox "No records found!", vbExclamation
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.