jfirestone
Registered User.
- Local time
- Today, 00:44
- Joined
- May 12, 2004
- Messages
- 10
HI all!
I need a little help with a query that isn't returning EXACTLY the info I want.
here is what I am currently getting...
Cust NO. , Name , DocType , DocDate , DocNum , DocApply , Subtotal
001436 , NBK , Invoice , 2/3/2004 , 212034 , 212034 , 90.00
001436 , NBK , Pmt , 2/15/2004 ,004346 , 212034 , -90.00
001436 , NBK , Invoice , 2/8/2004 , 212149 , 212149 , 90.00
037582 , ELL , Invoice , 2/15/2004 , 213625 , 213625 , 180.00
037582 , ELL , PMT , 2/25/2004 , 000205 , 213625 , -180.00
I only want this query to show me the customer that has an open balance, show it should only return...
Cust NO. , Name , DocType ,DocDate , DocNum , DocApply , Subtotal
001436 , NBK , Invoice , 2/8/2004 , 212149 , 212149 , 90.00
as this is the only invoice that is actually open. The first invoice for this customer has a payment for the full amount, and the second customer would not show at all since they have no open balance.
This would also show me the customer if they paid only part of their balance.
I essentially need this query to take the 2 (or more) transactions that reference the same DocApply, run a subtotal on them and only show them to me if they don't cancel each other out.
I am sure this is easy, just can't figure it out! Thank you!
I need a little help with a query that isn't returning EXACTLY the info I want.
here is what I am currently getting...
Cust NO. , Name , DocType , DocDate , DocNum , DocApply , Subtotal
001436 , NBK , Invoice , 2/3/2004 , 212034 , 212034 , 90.00
001436 , NBK , Pmt , 2/15/2004 ,004346 , 212034 , -90.00
001436 , NBK , Invoice , 2/8/2004 , 212149 , 212149 , 90.00
037582 , ELL , Invoice , 2/15/2004 , 213625 , 213625 , 180.00
037582 , ELL , PMT , 2/25/2004 , 000205 , 213625 , -180.00
I only want this query to show me the customer that has an open balance, show it should only return...
Cust NO. , Name , DocType ,DocDate , DocNum , DocApply , Subtotal
001436 , NBK , Invoice , 2/8/2004 , 212149 , 212149 , 90.00
as this is the only invoice that is actually open. The first invoice for this customer has a payment for the full amount, and the second customer would not show at all since they have no open balance.
This would also show me the customer if they paid only part of their balance.
I essentially need this query to take the 2 (or more) transactions that reference the same DocApply, run a subtotal on them and only show them to me if they don't cancel each other out.
I am sure this is easy, just can't figure it out! Thank you!