Calculating or Adding Values that are 0

B

blanch2010

I have three fields that I need to total. When i do run the total nothing
appears because one of the fields has a 0 value.

The expression is not counting 0 values, how do I work around this?
 
K

KARL DEWEY

Is the value actually zero or Null?
If it is null then use the NZ function like this --
Nz([Field1], 0) + Nz([Field2], 0) + Nz([Field3], 0)
 
B

blanch2010

Hi Karl.


The value is actually zero until someone updates the record. So do I use
what you gave me below?

Thanks
Don

KARL DEWEY said:
Is the value actually zero or Null?
If it is null then use the NZ function like this --
Nz([Field1], 0) + Nz([Field2], 0) + Nz([Field3], 0)

--
Build a little, test a little.


blanch2010 said:
I have three fields that I need to total. When i do run the total nothing
appears because one of the fields has a 0 value.

The expression is not counting 0 values, how do I work around this?
 
B

blanch2010

That's working! Thank You again Karl.

Don

blanch2010 said:
Hi Karl.


The value is actually zero until someone updates the record. So do I use
what you gave me below?

Thanks
Don

KARL DEWEY said:
Is the value actually zero or Null?
If it is null then use the NZ function like this --
Nz([Field1], 0) + Nz([Field2], 0) + Nz([Field3], 0)

--
Build a little, test a little.


blanch2010 said:
I have three fields that I need to total. When i do run the total nothing
appears because one of the fields has a 0 value.

The expression is not counting 0 values, how do I work around this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top