I am trying to create a count function in the report footer. My IIf statements where only 1 piece of criteria needs to be met are working great. I am using:
=Count(IIf([ControlName]="Yes",0))
I need to create an IIf statement that will count only if 2 piecec of criteria are met. I have tried a few things but I keep getting an error when I run the report that the expression is either typed incorrectly or is too complex. I have listed a few of the options I have tried below. Is there a way to fenagle one of these so that I can recieve a count of records meeting both criteria?
=Count(IIf([Control 1]="Yes" & [Control 2]="Yes",0))
=Count(IIf([Control 1] & [Control 2]="Yes",0))
=Count(IIf([Control 1]="Yes", Count(IIF([Control 2]="Yes",0)),0) this one returned a cannot have aggregate function error.
=IIf([Control 1]="Yes",Count(IIf([Control 2]="Yes",0)),0)
Thanks