Hi Experts,
I am using the below mentioned formula in a calculated textbox in a Subform for Sum of Item Qty * Item UnitCost but the textbox returns #Error. I have used this formula in another subform as well where it works fine.
I checked it without Sum function and the calculated textbox works fine.
Just a further information in case its relevant - the current subform has fields which has appended data from two different tables. Not sure if this could be a reason for SUM to not work.
Any insight will be greatly appreciated to resolve this. Thank you for your time.
=Sum(IIf([Currency]="CAD" And[OppID_FK]=1,[Item_UnitCost]*[Item_Qty],0))+Sum(IIf([Currency]="USD"And [OppID_FK]=1,[Item_UnitCost]*[Item_Qty],0))*[Parent].[Exchange]