I hope I can explain what I'm wanting to do.
My question is about database design.
My company is a farm, not a retail store. (Just so you understand the lack of precision required.)
The big picture:
We Receive Multiple Types of Feed Inventory monthly
We Feed Out Multiple Types of Feed Inventory monthly
We do not have a physical method of tracking exactly the Feed Received to the Feed Fed Out, but want to 'generally' track the cost of the Feed Fed.
Connecting up the most Recent Price of Received Feed with the Feed Fed Out is close enough.
Constructing the database:
I have one table for 'Monthly Feed Inventory Received with Prices' records.
I have another table for 'Inventory Fed' records.
The tables are updated at month end.
I can't just associate the 2 tables by the 'month' because we might received Inventory-A in Feb and still be using it in June, without having received any in Mar, Apr, or May.
I've pulled my Newest Prices from the 'Inventory Received' table by a couple of queries making use of a Max Date. So now I have a table with just all the Newest (Current) Prices.
I have associated the Feed Fed table with the 'Current Prices'.
I can't just run each month, because we will lose all our historical prices.
I've made an append query to put my 'Inventory Used' together with 'Current Prices' in a new table.
It's working. We now have a record of the 'Feed Fed' with Prices for each month.
But I get the error messages that Access can't append all the records because of Key violations. That's doing exactly what I want it to do, because I don't want it to change the existing records in the Append Table or make duplicate records.
I'm wondering if there is a better way to do this? I'm not sure this is 'best practice'. If there is not a better way to do this, I'll just have to suppress the error messages.
I'd welcome any suggestions.
Sandi