Am designing an Inventory Database System.
I have the following Tables
1.tblProducts
2.tblPurchases
3.tblPurchaseDetails (a join table with PurchaseID and ProductID as Key Fields)
4.tblIsues
5.tblIssueDetails (a join table with IssueID and ProductID as Key Fields)
On tblProducts there is a field QtyInStock which stores the current stock at any given time.
Once a product is purchased, on the purchase form as you save the record an update query is also run which updates the qtyinstock on the tblProducts. The same happens when you issue a product.
My problem comes at the end of the month when I want to calculate the opening stock of the month.
Is there a way I can store these quantities so that I have an analysed way of viewing the increament and decrease of the stocks.
Simply put like this
On the first day of the month the opening stock was X amount,then on the second day a purchase was made and x was increased to y amount.I want to view x and y which is not possible when I use the update query which updates x.
Cheers
I have the following Tables
1.tblProducts
2.tblPurchases
3.tblPurchaseDetails (a join table with PurchaseID and ProductID as Key Fields)
4.tblIsues
5.tblIssueDetails (a join table with IssueID and ProductID as Key Fields)
On tblProducts there is a field QtyInStock which stores the current stock at any given time.
Once a product is purchased, on the purchase form as you save the record an update query is also run which updates the qtyinstock on the tblProducts. The same happens when you issue a product.
My problem comes at the end of the month when I want to calculate the opening stock of the month.
Is there a way I can store these quantities so that I have an analysed way of viewing the increament and decrease of the stocks.
Simply put like this
On the first day of the month the opening stock was X amount,then on the second day a purchase was made and x was increased to y amount.I want to view x and y which is not possible when I use the update query which updates x.
Cheers