C
cmtrain via AccessMonster.com
I am using an iif statement to determine when any one of eight option buttons
are set to Yes. I then want to do a sum or count to find the total of records
that have all Nos. I am using an unbound field in a form to find whether the
options are all Nos or have at least one Yes:
=IIf(([F&C-V]=-1) Or ([EA-V]=-1) Or ([Interp]=-1) Or ([HLR-V]=-1) Or ([F&C-N]
=-1) Or ([EA-N]=-1) Or ([Tech-N]=-1) Or ([Family Group]=-1),0,1)
This works.
When I add a Sum or Count to this statement and place it in the Report Footer,
I get a #Error message. Any ideas on what I'm doing wrong? Thanks.
=Sum(IIf(([F&C-V]=-1) Or ([EA-V]=-1) Or ([Interp]=-1) Or ([HLR-V]=-1) Or (
[F&C-N]=-1) Or ([EA-N]=-1) Or ([Tech-N]=-1) Or ([Family Group]=-1),0,1))
are set to Yes. I then want to do a sum or count to find the total of records
that have all Nos. I am using an unbound field in a form to find whether the
options are all Nos or have at least one Yes:
=IIf(([F&C-V]=-1) Or ([EA-V]=-1) Or ([Interp]=-1) Or ([HLR-V]=-1) Or ([F&C-N]
=-1) Or ([EA-N]=-1) Or ([Tech-N]=-1) Or ([Family Group]=-1),0,1)
This works.
When I add a Sum or Count to this statement and place it in the Report Footer,
I get a #Error message. Any ideas on what I'm doing wrong? Thanks.
=Sum(IIf(([F&C-V]=-1) Or ([EA-V]=-1) Or ([Interp]=-1) Or ([HLR-V]=-1) Or (
[F&C-N]=-1) Or ([EA-N]=-1) Or ([Tech-N]=-1) Or ([Family Group]=-1),0,1))