Adding the values of multiple fields

  • Thread starter Thread starter KevinK
  • Start date Start date
K

KevinK

I have a Purchase Order form that has the fields “Assetsâ€, “Referenceâ€,
“Office Supplies†& “Personalâ€. These fields are located in the Purchase
Order table. What I would like to do is to total these fields for each
purchase order. These fields may not always be populated.
First, do I need to set a default value of “0†instead of a null value for
these fields so a calculation can be performed?
 
You do not have to set a 0 in the field, you can use the Null to zero function

MyTotal = Nz([Assess],0) + Nz([Reference],0) + Nz([Office Supplies],0) +
Nz([Personal],0)
 
Back
Top