Hello!
I current have a table [ORDERS] that lists customers orders with debits and credits. What I would like to do is for each customer who has the same customer number and order number, add the debit and credit together to give me the remaining value. BOTH criteria must be met before the addition takes place, because the customers "broker" may access at the same order and we charge the "broker" a fee as well.
(Example Current Data [Orders]
Cust# Order# Price
12345 AB698 34.00
12345 AB698 (15.00)
67890 AB698 5.00
98765 AB700 15.00
25879 AB700 5.00
I want to see:
Cust# Order# Price
12345 AB698 19.00
67890 AB698 5.00
98765 AB700 15.00
25879 AB700 5.00
I can get this output if I create a "credit table", a "match credit table" and an update query to add the figures together. But there must be an easier way to do this.
Does anyone have any ideas?
Thanks!
Emmie
I current have a table [ORDERS] that lists customers orders with debits and credits. What I would like to do is for each customer who has the same customer number and order number, add the debit and credit together to give me the remaining value. BOTH criteria must be met before the addition takes place, because the customers "broker" may access at the same order and we charge the "broker" a fee as well.
(Example Current Data [Orders]
Cust# Order# Price
12345 AB698 34.00
12345 AB698 (15.00)
67890 AB698 5.00
98765 AB700 15.00
25879 AB700 5.00
I want to see:
Cust# Order# Price
12345 AB698 19.00
67890 AB698 5.00
98765 AB700 15.00
25879 AB700 5.00
I can get this output if I create a "credit table", a "match credit table" and an update query to add the figures together. But there must be an easier way to do this.
Does anyone have any ideas?
Thanks!
Emmie