J
javajoe128
Hello,
I have a report with a yes/no field for which I would like to count the
number of "Yes" responses on. I created a calculated control using an
"IIF " statement. The formula is written as follows:
IIF ([field name X] = -1, sum[[field name x], 0)
The problem with this formula is that Access evaluates the first value
on the report and if it is not equal to "-1" it then puts "0" as the
result even if the 2nd or 3rd or other values proceeding the first
value = "-1".
How can I get Access to evaluate each rows result independently and
then sum only those that meet the criteria?
Thanks in advance.
I have a report with a yes/no field for which I would like to count the
number of "Yes" responses on. I created a calculated control using an
"IIF " statement. The formula is written as follows:
IIF ([field name X] = -1, sum[[field name x], 0)
The problem with this formula is that Access evaluates the first value
on the report and if it is not equal to "-1" it then puts "0" as the
result even if the 2nd or 3rd or other values proceeding the first
value = "-1".
How can I get Access to evaluate each rows result independently and
then sum only those that meet the criteria?
Thanks in advance.