accessaspire219
Registered User.
- Local time
- Today, 08:12
- Joined
- Jan 16, 2009
- Messages
- 126
Hi, I have a query which contains item numbers, branch, purchase order number, qty and due dates. This query looks for the closest due dates to the current date and displays those records. In some cases there are two purchase orders having the same due date and both qualify as the earliest due date therefore it displays both the purchase orders for that item.
Now, what I need it to do is that, if the earliest due dates are same for a particular item branch combination, it should add up the quantity and display it only once per item-branch combination.
Basically in simpler terms, it should look do a sumif on the qty and the criteria should be the item branch combination. I want one line per item-branch combination.
Does anybody have any idea how this could be done??
Thanks.
Now, what I need it to do is that, if the earliest due dates are same for a particular item branch combination, it should add up the quantity and display it only once per item-branch combination.
Basically in simpler terms, it should look do a sumif on the qty and the criteria should be the item branch combination. I want one line per item-branch combination.
Does anybody have any idea how this could be done??
Thanks.