Syntax for Empty Query Recordset Test

jkfeagle

Codus Confusious
Local time
Today, 06:18
Joined
Aug 22, 2002
Messages
166
Can someone tell me the VBA code for testing whether a query recordset is empty or not?
 
db.openrecordset
if rs.eof then
msgbox "recordset is empty"
else
msgbox "recordset is not empty"
end if
 

Users who are viewing this thread

Back
Top Bottom