Stock Control Database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pranish01
    New Member
    • Jun 2014
    • 5

    Stock Control Database

    Hello all,
    I'am currently working on a stock control database of a small business.The business deals with buying products from suppliers and store it in the shrowroom. Then these products are sold to customers.

    I have made the database so that it will calculate the product quantity level after sales and purchases and also product a reorder report.

    The attachment shows the table design of my databae.http://www.postimg.com/image/155000/capture-154094.jpg
    Can someone check my relationships if it is correct??

    I need help for calculating the product quantity level.

    Shall I use queries for that...that is one delete or update query that will decrease the quantity in the tblProduct upon Order( Sales/Customer Order). Also an append query for adding to the quantity in the tblProduct upon purchase Order

    Thanks in advance.
    Last edited by NeoPa; Jun 29 '14, 04:50 PM. Reason: Made pic viewable (didn't work)
  • burrina
    New Member
    • Jun 2014
    • 6

    #2
    Here is SQL code for tblProducts that may help you.
    Code:
    SELECT tblProducts.ProductID, tblProducts.ProductName, Sum(tblProducts.Inventory) AS StockLevel, Nz([ReOrderLevel],0-Nz([StockLevel],0)) AS ReStockAmnt, tblProducts.ReorderLevel
    FROM tblProducts
    GROUP BY tblProducts.ProductID, tblProducts.ProductName, tblProducts.ReorderLevel;
    HTH

    Comment

    Working...