I have what I think is a unique inventory situation. I have batches of product material that are unique every time but are then turned into different product types. Each batch has unique characteristics and unique pricing that follows on to the product.
I have two tables of information to track inventory: PackagingDetail and OrderDetail. Each have multiple records of the same batch and product type. And I am having trouble finding a way to relate them so I can query to find the inventory level of each batch and product type combination (sum of packaged minus sum of ordered). In the packaging table, there are multiple records for each batch/productID because I want to know the date each was packed. There will be multiple if it was packaged over the course of several days.
So I have two questions:
1. How do I relate and query the two tables since it is a many to many relationship. There is not really anything to line up, I just want the totals so I can see how many packaged, how many sold, and how many available. I'm looking for something like a stacked table where BatchID = BatchID and ProductID = ProductID.
2. I have tried to create an intermediate table, but I run in to the problem of unique IDs because I'm using two fields to find one product type (the batchID and the productID). I have tried creating a calculated field that creates a unique ID from the concatenation of both fields but Access does not allow calculated fields in table relationships.
I feel like I am missing something or going about this the wrong way and I have been unable to find anyone with a similar situation in all the Internets. And so this is my first forum post.
Please halp.