Treating three fields as one
Posted: Tue Mar 24, 2009 7:48 am
I want to write a sales report that we can use to calculate commission payments.____The master table is the transaction list, which contains all the info required in the report. Any given transaction has three fields that might contain a salesperson^s initials (PR, PR2 and PR3) and each of those salespeople might or might not earn commission on any given transaction (so there may be an amount in PR_AMT, PR_AMT2 or PR_AMT3, or in all three, or any two, or they might all be 0.00). ____The report has to sort and total the sales by salesperson, regardless of whether they are PR, PR2 or PR3 on the transaction. ____I can^t figure out how to gather the PR, PR2 and PR3 together and treat them as one, for the purpose of sorting. The sales reps are listed in another table with a field that matches the PR codes, if that will help. Thank you.