BethHawkins
New member
- Local time
- Yesterday, 20:53
- Joined
- Jan 3, 2024
- Messages
- 3
I am attempting to sum amounts only if a different field in the same table contains a certain amount. Here is the formula I have now:
EE Pre Tax: Sum(IIf([Inelig]![P1 Source]="EE", [Inelig]![P1 Amount]), Sum(IIf([Inelig]![P2 Source]="EE", [Inelig]![P2 Amount]), 0))
I will need to do this for 15 "P1 Amount"s.
I am able to get the function to work for the one P1 Source but as soon as I add the P2 Source, I either get closing parathesis errors or "The expression you entered has a function containing the wrong number of arguments" error. Any suggestions would be GREATLY appreciated.
EE Pre Tax: Sum(IIf([Inelig]![P1 Source]="EE", [Inelig]![P1 Amount]), Sum(IIf([Inelig]![P2 Source]="EE", [Inelig]![P2 Amount]), 0))
I will need to do this for 15 "P1 Amount"s.
I am able to get the function to work for the one P1 Source but as soon as I add the P2 Source, I either get closing parathesis errors or "The expression you entered has a function containing the wrong number of arguments" error. Any suggestions would be GREATLY appreciated.
Last edited: