Results 1 to 3 of 3
  1. #1
    vazdajic is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2016
    Posts
    95

    Filter records in Listbox based on selection in Combobox

    Picture tells it all.. Thanks for suggestions..



    Click image for larger version. 

Name:	Filter records in Listbox based on selection in Combobox.jpg 
Views:	24 
Size:	202.0 KB 
ID:	24265
    Database Combo Filters Listbox.accdb

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For the combo, use DISTINCT

    SELECT DISTINCT FieldName FROM TableName.

    The he filtering can be done a couple of ways:

    http://www.baldyweb.com/CascadingCombo.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    epardo87 is offline Competent Performer
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    101
    1. I would create a third table showing only the options for system (AB, AC and AD) and them link them, to the other tables
    2. Create a query of that third table, exactly the same, not filtering anything
    3. in the form, create a combobox selecting only the "document system short" values of that query
    4. create a second query for the filtering showing the following columns:
      1. document system short
      2. document name
      3. document system

    5. in criteria of this second query, put this formula in the column of document system short: [forms]![frmStart]![Name_Of_Your_ComboBox_Here]
    6. in the form, create the listbox using the columns "document name" and "document system" of the second query


    that should make it work

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

Similar Threads

  1. Replies: 3
    Last Post: 03-02-2016, 06:05 PM
  2. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  3. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 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