Results 1 to 8 of 8
  1. #1
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43

    How to filter if i have multiple record using combo box?

    Hi everyone,

    How can i filter when i have multiple record?

    Eg.

    Brand:

    Nike
    Nike


    Puma
    Adidas
    Adidas

    In the combo box(Drop down Box) i want to have only,

    Nike
    Puma
    Adidas

    When i click 'nike' it will filter out puma & adidas.

    How can i do this filtering?

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    What's the rowsource of your combobox?

  3. #3
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43
    SELECT tblshoe.P/N, tblshoe.brand From tblshoe where (((tblshoe.brand)=[forms]!frmshoe]![cbobrand]));

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    reply later.....

  5. #5
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    You need a new table, tblBrands, that contains all possible brands.
    That will be the rowsource for your combobox.

    Now what do you want to happen when you choose an item in the combobox?

  6. #6
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43
    Hi Davegri,

    Sorry for late reply.

    Now I want to filter away other sports brand

    Example:

    I select 'Nike' only nike brand will appear out.

    How can I do this?

  7. #7
    Jeremy Sng is offline Advanced Beginner
    Windows 7 32bit Access 2016
    Join Date
    Aug 2016
    Posts
    43
    Will I need to program the combo box?

  8. #8
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    This little DB shows how.
    Attachment 28223

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

Similar Threads

  1. Filter with multiple Combo boxes
    By dotcanada in forum Access
    Replies: 3
    Last Post: 09-01-2016, 01:19 PM
  2. Filter a Form with Multiple Combo Boxes
    By Njliven in forum Forms
    Replies: 6
    Last Post: 01-03-2013, 01:25 PM
  3. Replies: 14
    Last Post: 05-25-2012, 02:40 AM
  4. Filter for Multiple Queries/Combo Box
    By finance600man in forum Access
    Replies: 3
    Last Post: 08-09-2010, 06:31 AM
  5. Filter form from multiple combo boxes
    By Bird_FAT in forum Programming
    Replies: 6
    Last Post: 05-19-2010, 09:32 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