if rst.eof then
[INDENT]' EOF = end of file - there are no records
msgbox "No records"[/INDENT]
exit sub
rst.movelast
[INDENT]' without .movelast your record count will be one
' once you've moved to the end you'll
' know how many records there are[/INDENT]
msgbox rst.recordcount