Results 1 to 4 of 4
  1. #1
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352

    Enabling only certain options to appear in a combo box contingent on what was selected in another

    I have two combo boxes. One is a "Commodity" box where the user selected, for brevity, either commodity a, b, c, or d. They then select from the "Non Conformance" combo what type of error occurred with that commodity during production (1a, 2a, 3a, 1b, 1c, 1d, &c). However, some non conformance errors will occur only to one or two commodities and not to others. For simplicity on the front end, I would like to allow for only certain options to appear when the user selects a certain commodity. For example, only options 1b and 2b will appear in the "Non Conformance" combo box when the user selects Commodity b from the "Commodity" combo box. See the picture below. All help appreciated.
    Click image for larger version. 

Name:	nonconformance_screenshot.jpg 
Views:	11 
Size:	40.1 KB 
ID:	20922


  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    It seems you want cascading comboboxes. Here is an overview of what I am talking about.
    http://www.datapigtechnologies.com/f...combobox2.html

    And here is their main menu for their other tutorials
    http://www.datapigtechnologies.com/AccessMain.htm

    I created a series abut the Combobox too. This series starts with the properties of the combo and goes on from there. The details how to download these videos is here ...
    https://www.accessforums.net/tutoria...ers-52741.html

  3. #3
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    That should work out perfectly once I get it going. In order for me to do this do you think I will need to have a separate table that contains just commodities and non conformance types? And then use that table as the row source for the comboboxes?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Yes, need a table that associates commodities with their possible errors.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-05-2015, 03:34 PM
  2. Opening forms from selected options of combo box
    By Mohammadsharif in forum Forms
    Replies: 2
    Last Post: 10-16-2014, 12:24 AM
  3. Replies: 4
    Last Post: 10-25-2013, 06:48 AM
  4. Form using options for reports with selected dates
    By AussieGal in forum Programming
    Replies: 13
    Last Post: 10-12-2012, 01:37 AM
  5. Enabling Disabling Combo Boxes from Values
    By vdanelia in forum Forms
    Replies: 3
    Last Post: 02-04-2011, 10:09 AM

Tags for this Thread

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