Adding a field with a Null-value

  • Thread starter Thread starter Rolf Rosenquist
  • Start date Start date
R

Rolf Rosenquist

In a form I have 12 fields A, B, C, D... and Sum. After update of one of the
fields, the Sum should be calculated. I do that with code, but get nothing
(Null) for the Sum, if at least one of the fields contain a Null-value.

How can I do a calculation that ignores the Nulls and gives me the sum of
the real numeric values?

/ Rolf
 
That was the right medicine for this problem. Many thanks for the tip!
/ Rolf


Ofer Cohen said:
Try using the Nz function to replace the Null with 0

=Sum(Nz([FieldName],0))

--
Good Luck
BS"D


Rolf Rosenquist said:
In a form I have 12 fields A, B, C, D... and Sum. After update of one of the
fields, the Sum should be calculated. I do that with code, but get nothing
(Null) for the Sum, if at least one of the fields contain a Null-value.

How can I do a calculation that ignores the Nulls and gives me the sum of
the real numeric values?

/ Rolf
 

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

Back
Top