Assistance needed in counting null values

Voyager

Registered User.
Local time
Today, 18:26
Joined
Sep 7, 2017
Messages
95
Hi Team,
I want to get the count of null values of a table to be shown in a text filed of an unbound form. So I am using the below given code in the control source of the field however I am getting an error could you help me out?
Code:
=count(iif(isnull(“[tablename]”!”[fieldname]”),true,1,0))
 
Several mistakes in your code. Use this instead
Code:
=DCount("*","TableName","FieldName Is Null")
 
It works. Thanks for the help Ridders. I’m working on improving my knowledge in vba.
 

Users who are viewing this thread

Back
Top Bottom