About Sum & IIF, help!

Y

yanni

In the Report, while I write "=Sum(IIf(Condition,value1,value2))" on MDB
format,it works fine; but when changed to ADP format, still the same
expression, I received such a error msg:


"The expression 'Sum(IIf(Condition,value1,value2))' is invalid.
Aggregate functions are only allowed on output fields of the Record Source."

Any ideas?
THX
 
Top