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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting a blank value

Status
Not open for further replies.

TheEnigma

Technical User
May 26, 2002
69
US
I have a query that is counting yes/no fields. There are 3 fields titled

InCall,
Arrangement,
Resolution.

I have a 4th column that calculates the sum of these 3 fields. The only problem is that when one of the fields is blank, the 4th column won't return a value at all, even though the other 2 fields have data in them.

Can anyone help me please? :eek:)
 
You should use the Nz function to convert the Null values to zero because when you add any fields together the Null value errors out the expression.
Example:
Field4: Nz(InCall,0) + Nz(Arrangement,0) + Nz(Resolution,0)


Use this above example to set up your queries calculated column.

Bob Scriver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top