I’m presently going through a brain storm and would appciate some Ideas. Let’s hope that I can clearly explain myself..
I’m working on a small DB that handles the in/out of stock for which I have two Tables: [Entry] & [Dept]
The [Entry] table basically has the same fields as the [Dept] table. The prime fields for both tables are: [CustomerCode], [Doc_No], [Pckgs],[Weight] . Let's imagine that we receive a box of parts from our customer that contains 7 items with, we therefore have 3 entries for each item
CustomerCode Doc_No Pckgs Weight
112211 1 1 10
112211 2 5 13
112211 3 1 15
-----------------------------------------------
Total 7 38
Lets imagine that we have to take out of stock the second item in the list, I now need to produce a report that can give us the results of all the entries and items taken out of stock but we must keep the groups together and show a complete relation.
The report should show the data more or less as below:
CustomerCode 112211 Doc 1 - 1 Pckg 10Kgs
Items Out
Total 1 Pckg 10Kgs
CustomerCode 112211 Doc 2 - 5 Pckg 13Kgs
Items Out - 2 Pckg 3 Kgs
Total 3 Pckg 10Kgs
CustomerCode 112211 Doc 3 - 1 Pckg 15Kgs
Items Out
Total 1 Pckg 15Kgs
Any ideas/suggestions would be appreciated.
Thanks,
I’m working on a small DB that handles the in/out of stock for which I have two Tables: [Entry] & [Dept]
The [Entry] table basically has the same fields as the [Dept] table. The prime fields for both tables are: [CustomerCode], [Doc_No], [Pckgs],[Weight] . Let's imagine that we receive a box of parts from our customer that contains 7 items with, we therefore have 3 entries for each item
CustomerCode Doc_No Pckgs Weight
112211 1 1 10
112211 2 5 13
112211 3 1 15
-----------------------------------------------
Total 7 38
Lets imagine that we have to take out of stock the second item in the list, I now need to produce a report that can give us the results of all the entries and items taken out of stock but we must keep the groups together and show a complete relation.
The report should show the data more or less as below:
CustomerCode 112211 Doc 1 - 1 Pckg 10Kgs
Items Out
Total 1 Pckg 10Kgs
CustomerCode 112211 Doc 2 - 5 Pckg 13Kgs
Items Out - 2 Pckg 3 Kgs
Total 3 Pckg 10Kgs
CustomerCode 112211 Doc 3 - 1 Pckg 15Kgs
Items Out
Total 1 Pckg 15Kgs
Any ideas/suggestions would be appreciated.
Thanks,