SUM (?) in Report

A

an

Hello!
In Report I have:
Textbox1 to display VolPurge1 (numeric data field);
Textbox2 to display VolPurge2 ( " " " );
and so on, to
Textbox9 to display VolPurge9 (Numeric data field too).
I need to Sum values independently fields are filled or
not.
When there are numeric data in all fields, the SUM work
fine. When only one field is null the SUM don't work.
I would like help to this problem with formulae, please.
Thanks in advance.
an
 
G

George Nicholson

Textbox1 to display NZ([VolPurge1],0)
If VolPurge1 is Null the NullToZero function will display a zero.

and/or you can use the following in your Footer:
Sum(NZ([VolPurge1],0))
 
A

an

Sorry but when run, return msg "Enter parameter value" (?).
Thanks.
an
-----Original Message-----
Textbox1 to display NZ([VolPurge1],0)
If VolPurge1 is Null the NullToZero function will display a zero.

and/or you can use the following in your Footer:
Sum(NZ([VolPurge1],0))

--
George Nicholson

Remove 'Junk' from return address.


Hello!
In Report I have:
Textbox1 to display VolPurge1 (numeric data field);
Textbox2 to display VolPurge2 ( " " " );
and so on, to
Textbox9 to display VolPurge9 (Numeric data field too).
I need to Sum values independently fields are filled or
not.
When there are numeric data in all fields, the SUM work
fine. When only one field is null the SUM don't work.
I would like help to this problem with formulae, please.
Thanks in advance.
an


.
 
D

Duane Hookom

Are you summing across fields within one record or summing one field across
multiple records?
 
A

an

Ok.
I need to sum all values in same record.

Record 1
VolPurge1 value +
ValPurge2 without value +
ValPurge3 value +
ValPurge4 without value +
.... +
ValPurge9 value

in same record (Page1).

In another Page:

Record 2
VolPurge1 withou value +
ValPurge2 value +
ValPurge3 value +
ValPurge4 without value +
.... +
ValPurge9 without value

Thanks for you reply
an
 
A

an

Ok, GN!

I changed NZ([VolPurge1],0)
to NZ([VolPurge1];0)
and work fine.

Sincerely, thanks for your help.
an
-----Original Message-----
Textbox1 to display NZ([VolPurge1],0)
If VolPurge1 is Null the NullToZero function will display a zero.

and/or you can use the following in your Footer:
Sum(NZ([VolPurge1],0))

--
George Nicholson

Remove 'Junk' from return address.


Hello!
In Report I have:
Textbox1 to display VolPurge1 (numeric data field);
Textbox2 to display VolPurge2 ( " " " );
and so on, to
Textbox9 to display VolPurge9 (Numeric data field too).
I need to Sum values independently fields are filled or
not.
When there are numeric data in all fields, the SUM work
fine. When only one field is null the SUM don't work.
I would like help to this problem with formulae, please.
Thanks in advance.
an


.
 
D

Duane Hookom

Apparently you have found the Nz() function.
Just a word of total conjecture... adding values across a record generally
suggests un-normalized data. 9 repeating columns isn't usually the best
method of storing data.
 

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

Similar Threads

Sum in report 10
sum error 2
Sum a field with null value 5
Text Data to Numeric for Report 3
Can't figure out what I'm doing wrong with running sum 2
Access Report Calculation 2
Sum in a report 1
Report Footer Sum 1

Top