Calculated field

Marta

Registered User.
Local time
Today, 06:18
Joined
Apr 8, 2011
Messages
16
Hi

I'm trying to set up a calculated field which counts 3 fields of my table. So I wrote to expression builder [field1] + [field2] + [field3] but when some of the fields are empty it doesn't work and I want to keep these fields empty I don't want to put there 0. Can anybody tell me how to solve this problem?

Thank you very much.
 
Use the Nz() function to return a Zero value for values that hold null prior to calculation your total.
 
But I can't use Nz() function in expression builder. It is possible in a query but I don't want to make the query. I just need a table with 3 columns and one column with sums like in excel.
 
You need something along the lines of;
Code:
Me.Total = Nz(Me.Field1, 0) + Nz(Me.Field2, 0) + Nz(Me.Field3, 0)
 

Users who are viewing this thread

Back
Top Bottom