I made the mistake of including a stock level field in a products table some years ago (I was 'young' and naiive back then).
I am now in a position to amend this database and I am well aware that including a stock level field (or any calculated value) in a table is a complete NO NO.
So the obvious way to do it is the calculate the stock level in a totals query based on the QTY IN- QTY OUT and creating transactions (Issue or Return) to adjust the stock levels at stock checks.
I'm pretty sure that this is the 'professional way of doing it on a stock system. (or is there a better way?)
BUT...
All transactions need to be removed from the db and archived at the end of the year, thus affecting the stock levels.
What is the best way of maintaining stock levels to be carried over to the next year.
Do I need to use an 'archive table' that will store all my stock levels/transactions at the end of the year?
I feel this is going back to doing it the 'wrong way' again!
TIA
I am now in a position to amend this database and I am well aware that including a stock level field (or any calculated value) in a table is a complete NO NO.
So the obvious way to do it is the calculate the stock level in a totals query based on the QTY IN- QTY OUT and creating transactions (Issue or Return) to adjust the stock levels at stock checks.
I'm pretty sure that this is the 'professional way of doing it on a stock system. (or is there a better way?)
BUT...
All transactions need to be removed from the db and archived at the end of the year, thus affecting the stock levels.
What is the best way of maintaining stock levels to be carried over to the next year.
Do I need to use an 'archive table' that will store all my stock levels/transactions at the end of the year?
I feel this is going back to doing it the 'wrong way' again!
TIA