I am currently in the process of converting an MDB to ADP linked to a
SQL Server back end. In the MDB I have expressions in both queries
and report controls that are essentially:
Sum(IIF(<expr>,1,0))
These give me counts for certain parameters.
In the queries I was able to create views were I replaced these with
CASE ... WHEN statements with a sum in the Group By clause.
However I can not find a way to replicate this functionality in a
report control, the Control Source will not even accept a CASE ...WHEN
statement and with IIF I receive the following error:
The expression 'Sum(IIf(<expr>,1,0)) is invalid
Any help you can offer would be greatly appreciated.