is there a way to check to see if a field has any records?

smoke

Registered User.
Local time
Today, 03:22
Joined
Sep 2, 2004
Messages
18
this might help me with my filter.. thanks.
 
You mean a form, right?

The Access 2000 help file has an example that's just perfect for you:
Code:
Forms!Orders.RecordsetClone.MoveLast
MsgBox "My form contains " _
    & Forms!Orders.RecordsetClone.RecordCount _
    & " records.", vbInformation, "Record Count"
In short, use the RecordsetClone.MoveLast method to fully populate the form's recordsource (you may get an inaccurate count otherwise), then use the RecordsetClone.RecordCount property to get the actual count.
 

Users who are viewing this thread

Back
Top Bottom