Hi, I am trying to use a SUM method inside of an IIF Statement.
Status: IIf([ScheduleT].[AmountDue]=[PaymentMade],"Current",IIf((Now())<[ScheduleT].[DueDate],"Not Yet Due",IIf((Now()),pastdue([ScheduleT].[DueDate]),"")))
I want the IIf([ScheduleT].[AmountDue]=[PaymentMade] to be IIf([ScheduleT].[AmountDue]=Sum([PaymentMade]), "Current" etc..
But when I run it I get a Cannot have aggregate function inside GROUP BY clase error. I tried to create the SUM value in a new expression and call that expression but then I get Your query does not include the specified expression *** as part of an aggregate function..
Is there any way to do this?
Thanks.
Fen
Status: IIf([ScheduleT].[AmountDue]=[PaymentMade],"Current",IIf((Now())<[ScheduleT].[DueDate],"Not Yet Due",IIf((Now()),pastdue([ScheduleT].[DueDate]),"")))
I want the IIf([ScheduleT].[AmountDue]=[PaymentMade] to be IIf([ScheduleT].[AmountDue]=Sum([PaymentMade]), "Current" etc..
But when I run it I get a Cannot have aggregate function inside GROUP BY clase error. I tried to create the SUM value in a new expression and call that expression but then I get Your query does not include the specified expression *** as part of an aggregate function..
Is there any way to do this?
Thanks.
Fen