Results 1 to 5 of 5
  1. #1
    gt11990 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    3

    Unhappy Look up Combo box

    Hello,



    Basically i am trying to create a stock control system.

    I have two tables one with the products and their stock levels which are updated daily and the order table where orders are made according to the products in the products table with their stock level.

    i have created a form for the orders and i have used a combo box to get the product names

    SELECT [Products].Part, [Products].PartName FROM Products; - this is what i used for the combo box which is a table/query

    my question is how can i have a field to be updated with the selected products stock so when ordering the stock can be seen


    Thank you

  2. #2
    ryanmce92 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    48
    So you want the stock to appear whenever you select a product from the combo box?.

    See the youtube video in the link shows you how to do cascading combo boxes

    http://www.youtube.com/watch?v=SpMyGlEInGs

    Slightly long video but perfectly shows you how to do this.

  3. #3
    gt11990 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    3
    that was great thank you helped me soo much may i ask you another question if you dont mind.

    How can i decrease the stock every time a order is made

    so the order details with the quantity is recorded into the order table

    the current stock is on products table

    how can the stocks on products table when a submission is inserted


    Thank you

  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,870
    If you are planning to do a database to support inventory Control, the you should read this material from Allen Browne.
    It will help put concepts into focus.
    Good luck.

  5. #5
    gt11990 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    3
    Hi thank You for your response however after looking in to the link you gave me i realized that this wouldn't work with my system.

    Way mine works is,

    order form product combo box gets information from products table. Once product is selected the stock level is displayed on another combo box which also gets the information from products table.

    Once a product is selected and a quantity is inputted and submitted the details are recorded on orders table.


    The products table is left intact however i want the quantity required box to decrease the stock level in products.

    I hope this is clear and hope the images help

    Thank you
    Click image for larger version. 

Name:	access relationship.png 
Views:	8 
Size:	10.3 KB 
ID:	20036
    Click image for larger version. 

Name:	access form.png 
Views:	8 
Size:	10.9 KB 
ID:	20037

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

Similar Threads

  1. Replies: 2
    Last Post: 10-21-2014, 07:57 AM
  2. Replies: 3
    Last Post: 07-03-2013, 10:38 AM
  3. Replies: 1
    Last Post: 10-30-2012, 10:29 AM
  4. Replies: 2
    Last Post: 08-16-2012, 10:02 PM
  5. Replies: 4
    Last Post: 08-16-2011, 05:54 PM

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