2 Combo Box on main Form Filter 8 SubForm on TAB Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kinglioness
    New Member
    • Mar 2008
    • 2

    2 Combo Box on main Form Filter 8 SubForm on TAB Control

    Hello All, I am new to this forum so I apologize if this quesiton was asked already. Although i did search but i couldn't find.

    I have 2 combo boxes one unbound and the other bound they are on the main form. One (combo box) filters the other. I would like for both boxes to filter the subforms which by the way are on tab controls I have 8 pages. I am very new to vba, but I am trying to get a code that will filter whatever subform is visible based on both combo boxes even if one of the combo boxes does not have a value/text. The unbound combo box has an integer and the bound has text.

    The main form is based off a table. The subforms are queries of the same table.

    Please help I've been stuck for a week going on two weeks. Any help would be greatly appreciated.
  • PianoMan64
    Recognized Expert Contributor
    • Jan 2008
    • 374

    #2
    Originally posted by kinglioness
    Hello All, I am new to this forum so I apologize if this quesiton was asked already. Although i did search but i couldn't find.

    I have 2 combo boxes one unbound and the other bound they are on the main form. One (combo box) filters the other. I would like for both boxes to filter the subforms which by the way are on tab controls I have 8 pages. I am very new to vba, but I am trying to get a code that will filter whatever subform is visible based on both combo boxes even if one of the combo boxes does not have a value/text. The unbound combo box has an integer and the bound has text.

    The main form is based off a table. The subforms are queries of the same table.

    Please help I've been stuck for a week going on two weeks. Any help would be greatly appreciated.
    can you please include any table structures as well as SQL Queries that you've written already.

    Need to get a look as to how you've set this up.

    Thanks,

    Joe P.

    Comment

    Working...