G
Guest
I am trying to count multiple fields in a report using the following
=Val(IIf(IsNumeric([SPM Housekeeping.Score A]),Count([SPM Housekeeping.Score
A]),0)+IIf(IsNumeric([SPM Housekeeping.Score B]),Count([SPM
Housekeeping.Score B]),0)+IIf(IsNumeric([SPM Housekeeping.Score
C]),Count([SPM Housekeeping.Score C]),0))
When i use the above in a FORM, it works great. For example, if [Score A]
has a value, [Score B] has a value, but [Score C] does not have a value, it
returns 2.
When i plug in the above in a REPORT it gives a number that i can't even
determine how it arrives at that number. Apparently it doesn't work like it
does on a FORM.
I am using MS Access 03, windows XP.
Can someone help, please let me know what i'm doing wrong.
Thanks for your help.
=Val(IIf(IsNumeric([SPM Housekeeping.Score A]),Count([SPM Housekeeping.Score
A]),0)+IIf(IsNumeric([SPM Housekeeping.Score B]),Count([SPM
Housekeeping.Score B]),0)+IIf(IsNumeric([SPM Housekeeping.Score
C]),Count([SPM Housekeeping.Score C]),0))
When i use the above in a FORM, it works great. For example, if [Score A]
has a value, [Score B] has a value, but [Score C] does not have a value, it
returns 2.
When i plug in the above in a REPORT it gives a number that i can't even
determine how it arrives at that number. Apparently it doesn't work like it
does on a FORM.
I am using MS Access 03, windows XP.
Can someone help, please let me know what i'm doing wrong.
Thanks for your help.