Results 1 to 5 of 5
  1. #1
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27

    One combo box to filter another

    Hi,



    On one form I have a combo box that selects district and another that is called services. What services are allowed depends on what district is selected so what I'd like is to only display certain options in the services box depending on what is selected in district.

    How can I do this?

    Many thanks.

  2. #2
    lfpm062010 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Location
    US
    Posts
    415
    1) If the district and services combo box are on different forms, they both forms have to be opened.
    2) Select your district. Then on the services combo box using the district combo box value as its criteria.
    On the Row Source of the Property of servcie combo box.
    SELECT * FROM TABLENAME WHERE ((([DISTRICT])=[Forms]![districtform]![districtcombobox]));

  3. #3
    nick404's Avatar
    nick404 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2015
    Location
    Wisconsin
    Posts
    352
    This tutorial is excellent as well: http://www.datapigtechnologies.com/f...combobox2.html

  4. #4
    roarcrm is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jun 2014
    Posts
    27
    Quote Originally Posted by nick404 View Post
    This tutorial is excellent as well: http://www.datapigtechnologies.com/f...combobox2.html
    That is great, thank you.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    FYI, the concept is usually called 'Cascading Comboboxes,' although the same approach can be used with Listboxes as long as the Multi-Select Property is set to None.

    Linq ;0)>

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

Similar Threads

  1. Replies: 4
    Last Post: 06-18-2014, 08:31 PM
  2. Replies: 1
    Last Post: 10-01-2013, 09:25 PM
  3. filter value in a combo box
    By dada in forum Programming
    Replies: 3
    Last Post: 09-05-2010, 01:22 PM
  4. Combo Box filter – help!
    By catat in forum Forms
    Replies: 1
    Last Post: 08-24-2010, 04:15 PM
  5. Combo Box Filter
    By jgelpi in forum Programming
    Replies: 3
    Last Post: 07-27-2009, 12: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