I am trying to figure out the best way to accomplish this task/calculation.
I have five fields. Comm, Comm2, Comm3, %, Amount (Row # is for reference in my example)
Most often, Comm2 and Comm3 are blank, and never are Comm, Comm2, and Comm3 filled for same row, and Comm will ALWAYS have something in the field.
What I need is:
Row 1: easy: amount X % which gives $30 for JP
Row 2: amount x 1% for Comm2 AND amount x (3% - 1%) which gives $15 for BD and $30 for JP
Row 3: amount X 1% for Comm3 AND amount x (3% - 1%) which gives $12.50 for GP and $25.00 for JP
Row 4: same as row 2
Row 5; FP gets nothing, all % go to JP
I have tried: IIf(IsNull[Comm2] AND IsNull[Comm3], [Amount]*[%], [Amount]*([%]-.01) AND [Amount]*(.01))
and I failedmiserably
(have I mentioned I've not done this sort of thing in years?!)
Thank you for guidance, tips, hints, suggestions!
Row # Comm Comm2 Comm3 % Amount 1 JP 3 100 2 JP BD 3 150 3 JP GP 3 125 4 JP SP 3 1000 5 JP FP 3 200