Thank you for looking at my question,
I have a working report in an Access database that groups data by Week, Date and Shift. I have tried to translate this same format to and Access ADP report but the aggregate functions that work in the access report don't work in the ADP report.
An example of one of the aggregate functions is:
=Sum(IIf([ShiftNo]=1,[JobCount],0)) - this is placed in the control source of a textbox in the report
counts the number of jobs started by Shift1 in a week
The error message I get is:
Aggregate functions are only allowed on output fields of the Record Source
I tried using a CASE statement:
=Sum(CASE WHEN [ShiftNo]=1,[JobCount])
but am told that the expression I have entered contains incorrect syntax.
How do I translate / re write the aggregate function such that it performs dynamic calculation in the adp report.