I am trying to find the number of response types given for a survey question during a single quarter and post the count in an unbound field on a bound report. I have written the following expression that, in my mind, should work but I keep getting error messages:
=Sum(IIf(Eval[tblTableName].[FieldName]="5" And (DatePart("q",[SurveyDate])=2)),1,0)
My thinking is, I should get a count of all of the "5" responses in the named field that were received during the second quarter. Can you see what I'm doing wrong?
=Sum(IIf(Eval[tblTableName].[FieldName]="5" And (DatePart("q",[SurveyDate])=2)),1,0)
My thinking is, I should get a count of all of the "5" responses in the named field that were received during the second quarter. Can you see what I'm doing wrong?
Comment