Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting Nulls in a report

Status
Not open for further replies.

ferrisj

IS-IT--Management
Dec 7, 2004
79
US
I would like to put 3 formulas in a group footer. Each will count a specific value in the above report.

Some records are "S" some are "L" the rest are Nulls.

What is the Formula to count these?
 
You can use an expression like this.

=Sum(IIf(IsNull(FieldName),1,0))

That will count the number of null values.
You can use

=Sum(IIf(FieldName = "S",1,0)

That will count the number of "S" values.
Same formula for "L"


Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top