DCount - Empty Records

systemx

Registered User.
Local time
Today, 12:15
Joined
Mar 28, 2006
Messages
107
Hi all,

Hoping for a little help. I am trying to DCount all records in a tblMail where field 'Date_Received' is empty/null.

I am using -
Code:
Me.txtMOustanding = DCount("*", "tblMail", "[Date_Completed]" = Null)

This seems to count all records in the table, and not those where Date_Completed field is empty.

Can anyone help me with this?

Thanks

Rob
 
systemx,

Me.txtMOustanding = DCount("*", "tblMail", "IsNull([Date_Completed])")

Wayne
 
So obvious. Thanks Wayne!
 

Users who are viewing this thread

Back
Top Bottom