I have a calculated field on the detail level of a report which is calculated as follows:
=Iif([BREAK]>1200 AND [LUNCH]<>0),1800-[BREAK],IIF([BREAK]<>0,900-[BREAK],0))
This calculates correctly, however when I put the following calculated field in the Group footer section of the report, I receive a "statement too complex" error message:
=1800-Avg(Iif([BREAK]>1200 AND [LUNCH]<>0),1800-[BREAK],IIF([BREAK]<>0,900-[BREAK],0))
The calculation for the Group footer works in Access 97 so I know that syntactically the statement is correct.
Can anyone tell me why this will not work in Access 2003 and provide a work around so I can get the Average of the calculated Detail section field.
Thank you.
=Iif([BREAK]>1200 AND [LUNCH]<>0),1800-[BREAK],IIF([BREAK]<>0,900-[BREAK],0))
This calculates correctly, however when I put the following calculated field in the Group footer section of the report, I receive a "statement too complex" error message:
=1800-Avg(Iif([BREAK]>1200 AND [LUNCH]<>0),1800-[BREAK],IIF([BREAK]<>0,900-[BREAK],0))
The calculation for the Group footer works in Access 97 so I know that syntactically the statement is correct.
Can anyone tell me why this will not work in Access 2003 and provide a work around so I can get the Average of the calculated Detail section field.
Thank you.