hi. i have a large if..then statement, but every time i try to add more arguments it starts acting weird
This is a 3 argument sample of the query I need to write below.
Can somebody please give me a more concise and accurate way of doing this query?
CntD: IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS]="D")),1,IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS] Like "")),1,IIf((([AUDITS]![CALLER_STATUS]="D") And ([AUDITS]![RECD_MAIL] Like "")),1,IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS] Not Like "")),0,0))))
This is a 3 argument sample of the query I need to write below.
Can somebody please give me a more concise and accurate way of doing this query?
CntD: IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS]="D")),1,IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS] Like "")),1,IIf((([AUDITS]![CALLER_STATUS]="D") And ([AUDITS]![RECD_MAIL] Like "")),1,IIf((([AUDITS]![RECD_MAIL]="D") And ([AUDITS]![CALLER_STATUS] Not Like "")),0,0))))