
Originally Posted by
June7
This is managing the Visible property of controls. I doubt you will find any example of what you describe. How will the button 'know' which combobox you want to make available? Could use a combobox to select the field name and reveal the associated combobox.
The 'master' combobox (you called drag box) would have properties like:
RowSourceType: Value List
RowSource: Name;Add Another Filter;University
Code in that combobox AfterUpdate event like:
Select Case Me.cbxMaster
Case "Name"
Me.cbxName.Visible = True
Case "Add Another Filter"
Me.cbxFilter.Visible = True
Case "University"
Me.cbxUniversity.Visible = True
End Select