Results 1 to 3 of 3
  1. #1
    frispee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2

    Filtering table based on combo box selections

    Hi,



    I have a form with two combo boxes (Supplier and Plant). In the same form I have a table in datasheet view as a sub-form which shows all suppliers and all plants. I want to be able to select a supplier and a plant and I want the table to show only the entries matching that criteria. Any suggestions? I have just started out using VBA and would greatly appreciate any help.

    Thank you in advance

  2. #2
    rivereridanus is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    71
    You can actually do this outside of vba if you want. Here's how:
    Once you have your combo boxes set up and the table in the form, select the table subform and go in the properties window under the Data tab. Source Object shoule be the name of your table. Link Master Fields indicates the combo boxes, and Link Child Fields indicates the subform. So it sounds like yours should be like this:
    Source Object: [name of table]
    Link Master Fields: Supplier;Plant
    Link Child Fields: Supplier;Plant
    Filter On Empty Master: Yes

  3. #3
    frispee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    2
    @riveridanus: Thanks a lot! it works

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

Similar Threads

  1. Selections based off of tiered criteria
    By New_2_Access in forum Access
    Replies: 7
    Last Post: 06-19-2012, 11:00 PM
  2. Replies: 3
    Last Post: 04-09-2012, 10:16 AM
  3. Replies: 8
    Last Post: 03-19-2012, 08:50 PM
  4. Replies: 5
    Last Post: 03-12-2012, 02:58 AM
  5. Replies: 1
    Last Post: 05-25-2011, 08:37 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