JeffMachine
MIS
I need to modify my inventory valuation report to show the newest and oldest date an item has been in inventory.
I've added a subreport that selects all receipts for each item. I've passed the qtyonhand to the subreport for comparison.
I've ordered the subreport by transaction date descending. This gives me the newest date, no problem there.
Where I am struggling is getting the oldest date.
Example
Main report
Item 123 has a quantity of 3
Subreport - Transactions
(date, trxqty, qtyonhand(passed from main report))
10/31/12,1,2
9/15/12,1,2
8/12/12,2,2
8/1/12,1,2
7/15/12,5,2
So here my newest date would be 10/31/12, I've got that. The oldest date would be 8/12/12 since I have 3 on hand and backing down to that date gives me the last 4 (running total of trxqty) that were received.
How do I determine the last date in the subreport?
Once I can determine this info I'll pass it back to the main report.
I'm using version 2008.
Thanks ....
I've added a subreport that selects all receipts for each item. I've passed the qtyonhand to the subreport for comparison.
I've ordered the subreport by transaction date descending. This gives me the newest date, no problem there.
Where I am struggling is getting the oldest date.
Example
Main report
Item 123 has a quantity of 3
Subreport - Transactions
(date, trxqty, qtyonhand(passed from main report))
10/31/12,1,2
9/15/12,1,2
8/12/12,2,2
8/1/12,1,2
7/15/12,5,2
So here my newest date would be 10/31/12, I've got that. The oldest date would be 8/12/12 since I have 3 on hand and backing down to that date gives me the last 4 (running total of trxqty) that were received.
How do I determine the last date in the subreport?
Once I can determine this info I'll pass it back to the main report.
I'm using version 2008.
Thanks ....