Results 1 to 6 of 6
  1. #1
    hagamablabla is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    17

    How to use combo box as a filter for a form?


    I'm currently making a mockup of a database that has a table of items, a table of projects, and a table of which items are used by a project. I would like to make a split form that can select a project through a combo box, find the associated project ID, then show only the items used by that project.

    Also, as a side note, if anyone has moderate - advanced guides on how to make forms, preferably non-video, I'd like to see them. Every guide I've found seems to either be for beginners (ends at how to create a form), or is in a video format.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    https://support.office.com/en-us/art...8-C266FE084102

    Options:

    1. intrinsic search/filter tools

    2. dynamic parameterized query

    3. VBA code, review http://allenbrowne.com/ser-62.html
    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.

  3. #3
    hagamablabla is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    17
    Thank you, I will try these out. I'm having some trouble linking the combo box to the subform though. How do I do it?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    What do you mean by 'linking' - making the RowSource conditional on some other field? Known as 'cascading' or 'dependent' combobox. And exactly what is the 'trouble' - error message, wrong results, nothing happens?
    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.

  5. #5
    hagamablabla is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2017
    Posts
    17
    By linking, I mean making it interact with the other parts of the form. For example, I can select a project name in a combo box, but doing so doesn't change anything except the name displayed by the combo box. I'd like to be able to have that value affect other things, such as updating a filter for the subform.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    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: 11
    Last Post: 09-03-2015, 11:12 AM
  2. Filter continuous form by combo box
    By revolution9540 in forum Forms
    Replies: 10
    Last Post: 08-04-2015, 02:16 PM
  3. Help using 2 combo boxes to filter form
    By umpersav in forum Programming
    Replies: 2
    Last Post: 07-13-2015, 12:29 PM
  4. Filter A Form With Combo Box
    By JeffG3209 in forum Forms
    Replies: 15
    Last Post: 05-27-2011, 09:04 PM
  5. Filter my form from combo box
    By Angate in forum Forms
    Replies: 3
    Last Post: 04-24-2010, 01:57 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