Results 1 to 5 of 5
  1. #1
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27

    what do i design so that the database warns me to order more stock?


    i need serious help.i am a beginner using access 2007.I have 3 tables.<br>INVENTORY<br>SALES<br>SUPPLIER<br>I have created a an update query that deducts the qty amount after a transaction is made and update that value to the qty field in the INVENTORY table.Now i want to the database to warn me when the stock(inventory) level starts to run low.How in the world do i do this without having to use VBA?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Build a report and run the report every day.

    However, the design where you save calculated data is usually a bad idea. Review http://allenbrowne.com/AppInventory.html

    The example shows use of VBA but not necessarily required. A series of queries could probably get the desired data manipulation.
    Last edited by June7; 11-19-2013 at 04:10 PM.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I can not agree with june7 more, you do NOT want to update your tables every time you add/remove a stock item. What you really want is a table that stores your products (product table), a table that stores your receipts or dusbursements (purchase orders from your customers) then calculate your on hand value based on how much of the item you have received vs how much you have disbursed. Your product table can contain a 'warning threshhold' so that if your 'on hand' calculation falls below a certain level it can be triggered for either a report as June7 suggests, or on a form.

    Updating your table with a new calculation every time you make a change is a very bad idea. Just think of it this way.

    You come in to work tomorrow and suddenly you have zero stock (according to the database) of everything. If you don't have the original record of when you received and spent items you have no way of auditing your system to find out what went wrong nor would you be able to tell a customer when they purchased a certain item from you and in what quantities based on the DATA and not having to track down a piece of paper.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Further to what June7 and rpeare have said, in inventory systems there is often a ReOrder Level associated with a Product. Not all Products have the same ReOrder level. After having disbursed/sold some Product, and recording that disbursement in a transaction table, you can query your transaction table for the Quantity of that Product OnHand. You can compare the Quantity of Product OnHand with the ReOrder Level for that Product, and take appropriate action.
    In some DBMS you can create a "trigger" - code that automatically executes based on some condition - and program it such that an email or order is sent to the Supplier requesting the ReOrder Quantity for that Product whose Quantity OnHand has reached or fallen below the ReOrder Level.

    Inventory and Stock Control systems can become quite complex.

    Good luck with your project.

  5. #5
    xtrareal22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2013
    Posts
    27
    i understand how to do it.thanks for the help

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Stock Inventory Design
    By plowe in forum Database Design
    Replies: 3
    Last Post: 09-06-2012, 05:47 PM
  2. Order Database Design - does this look reasonable
    By SHimmer45 in forum Database Design
    Replies: 5
    Last Post: 04-20-2012, 01:06 PM
  3. Vehicle work order database design
    By bacanter01 in forum Database Design
    Replies: 4
    Last Post: 03-22-2012, 07:58 PM
  4. Stock Managment Database Design
    By chuki2 in forum Database Design
    Replies: 4
    Last Post: 12-22-2011, 11:36 PM
  5. Invoicing with Stock Control Design ....
    By mond007 in forum Access
    Replies: 5
    Last Post: 05-23-2010, 07:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums