Results 1 to 3 of 3
  1. #1
    m1nd64m3 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    7

    Simple inventory database


    I am new to access, been working on this for about a month now. I have been searching on how to keep a count of the inventory, and all I can find are complicated methods that are way beyond the scope of what I am doing. Receiving and suppliers and all that stuff is not integrated into this database. I have a table for part number, mfr, description, quantity new, and quantity used. I then have a query that searches all this on a form, which then opens up another form with all the information above for the record requested.

    What I am trying to do is have two text boxes on the form that the user can enter the amount of an item they took out of stock or added too stock, then click the update inventory button, and have it update the quantity on the table. I have created a calculation on the form that takes the original amount from the table - quantity removed + quantity added = quantity ending and that works, but I need to store the quantity ending amount back to the table. I am aware this is a no no but I am new to this, and since there isnt a receiving side to the database I have no way to keep running totals for the database to compile everytime the quantity count is needed.

    My other option I was thinking if that wasn't doable is to just have the text box on the form editable and have up and down arrows next to it that would increase or decrease the stock by one depending on the arrow you click, much like you would find when you are setting the amount of copies to print in the print setup box for your browser. But I have been unable to locate anything on how to make these arrows work. I would really appreciate some help with this.

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    if you're using a bound form let's assume your quantity on hand is in a field called

    ONHAND

    add a field to your table that is unbound (not connected to any data element) name that field SUBTRACTTHIS

    Create a button
    go to the ON CLICK properties of that button and add this code

    ONHAND = ONHAND - SUBTRACTTHIS

    your ONHAND field should update to the old amount minus any product the person enters to take out

  3. #3
    m1nd64m3 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    7
    Perfect! thank you so much.

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

Similar Threads

  1. Help with "simple" inventory system
    By waltb in forum Database Design
    Replies: 14
    Last Post: 07-06-2011, 01:45 AM
  2. Inventory Database
    By roger556 in forum Access
    Replies: 17
    Last Post: 06-21-2011, 06:26 AM
  3. Simple Inventory Database
    By jculp123180 in forum Database Design
    Replies: 6
    Last Post: 05-28-2011, 12:33 PM
  4. Inventory Database
    By kram941 in forum Access
    Replies: 2
    Last Post: 11-09-2009, 04:28 PM
  5. Database design for simple inventory
    By toptech in forum Database Design
    Replies: 12
    Last Post: 10-24-2009, 07:24 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