D
Dymondjack
Thanks in advance...
I have a Scheduled shipments report that lists all parts that need to be
shipped, by date. Included in this report is the Qty On Hand, which is
pulled from a parts master table. Many (most) parts, have multiple shipping
instances across the report, and I am trying to come up with an easy way to
calculate the remaining qty after previous shipments would have been made.
For example:
Part Number 55555-55 has three shipments of 25pcs, dated 1/9/09, 2/9/09, and
3/9/09, and currently there are 68pcs in inventory. So, my report shows this:
1/9/09 25pcs 55555-55 68OH
....
....
2/9/09 25pcs 55555-55 68OH
....
....
3/9/09 25pcs 55555-55 68OH
and I would like it to read this:
1/9/09 25pcs 55555-55 68OH
....
....
2/9/09 25pcs 55555-55 43OH
....
....
3/9/09 25pcs 55555-55 18OH
Each recurring part would take into account shipments that are scheduled to
be shipped before that, and adjust the On Hand Qty accordingly.
I have a way to do this, but I don't believe it will be very efficient at
all, and am curious if there might be some built-in functionality I can
utilize to accomplish the task?
My thoughts at this point in time are to use a temporary table when the
report runs and run a check for every record in the Report. If I were to
append each shipment and the qty to a temporary table, I could check each
record in the report, and if it finds like records in the temp table,
subtract the ship qtys from the temp table from the inventory quantity in the
parts master table.
I believe this will work fine (I haven't tried it yet, but don't see any
reason why not), but I do not expect it to be quick by any means.
I don't have a ton of experience performing calculations like this, and am
hoping that access has some function or query that will do this that I have
yet to be introduced to.
Thanks much!
-jack
I have a Scheduled shipments report that lists all parts that need to be
shipped, by date. Included in this report is the Qty On Hand, which is
pulled from a parts master table. Many (most) parts, have multiple shipping
instances across the report, and I am trying to come up with an easy way to
calculate the remaining qty after previous shipments would have been made.
For example:
Part Number 55555-55 has three shipments of 25pcs, dated 1/9/09, 2/9/09, and
3/9/09, and currently there are 68pcs in inventory. So, my report shows this:
1/9/09 25pcs 55555-55 68OH
....
....
2/9/09 25pcs 55555-55 68OH
....
....
3/9/09 25pcs 55555-55 68OH
and I would like it to read this:
1/9/09 25pcs 55555-55 68OH
....
....
2/9/09 25pcs 55555-55 43OH
....
....
3/9/09 25pcs 55555-55 18OH
Each recurring part would take into account shipments that are scheduled to
be shipped before that, and adjust the On Hand Qty accordingly.
I have a way to do this, but I don't believe it will be very efficient at
all, and am curious if there might be some built-in functionality I can
utilize to accomplish the task?
My thoughts at this point in time are to use a temporary table when the
report runs and run a check for every record in the Report. If I were to
append each shipment and the qty to a temporary table, I could check each
record in the report, and if it finds like records in the temp table,
subtract the ship qtys from the temp table from the inventory quantity in the
parts master table.
I believe this will work fine (I haven't tried it yet, but don't see any
reason why not), but I do not expect it to be quick by any means.
I don't have a ton of experience performing calculations like this, and am
hoping that access has some function or query that will do this that I have
yet to be introduced to.
Thanks much!
-jack