Results 1 to 4 of 4
  1. #1
    stew8908 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2012
    Posts
    1

    An inventory system

    Ok, what i need to accomplish is a system that can monitor its self and I think with the right code implemented i can make it send out an email to order the parts that are low at the end of the day. the first think i want to try and tackle though is check in check out which will basically my add or subtract one from a selected record in my amount in inventory field by the push of a button. I am just starting to learn vb, so can i get some one to tell me how to apply that trait to my button or buttons

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    If you are not familiar with Database design concepts, there are free video tutorials available online.
    see post #2 at
    https://www.accessforums.net/showthr...lp-with-design

  3. #3
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Adding or substracting values through VBA is not all that difficult.
    Lets presume your inventory field on your form is called fldInventory and the buttom is called btnSubstract

    Make the button and right click to see its properties. Then rename the button and set an event procedure to <on click> so it fires the code when clicked.

    This would be the code to substract a value of 1 from the value in the field :

    Private Sub btnSubstract_Click()
    Me.fldInventory = [fldInventory] - 1
    End Sub

    Keeping track of an inventory is easy but it gets a bit more tricky when you have a table with customers as well. Presuming that when a customer buys a product you add the product to his bill and at the same time substract the products from the inventory of the shop.

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

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. Replies: 2
    Last Post: 04-12-2011, 10:14 AM
  3. Inventory System
    By Rawb in forum Database Design
    Replies: 8
    Last Post: 01-05-2011, 07:26 AM
  4. Replies: 6
    Last Post: 12-10-2009, 08:12 PM
  5. System.mdb or System.mdw?
    By cgriella in forum Access
    Replies: 1
    Last Post: 09-30-2008, 08:16 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