Combo Box to Open Sub

  • Thread starter Thread starter DuWayne
  • Start date Start date
D

DuWayne

I have a main form (Frm_Data_In) and a combo box with
choices (A, B, C, D, E, F, G) which are the names of my
subforms.

When I chose A, B, C, etc... I would like for it to open
the associated subform to enter data and when I select
another choice it close the first form and open the new one.
I hope I made myself clear, still new at this.
 
Use the combo-box's After Update event:

Select Case combo_box_name
Case A
Me.SubFormA.Visible = True
Me.SubFormB.Visible = False
....
Case B
Me.SubFormA.Visible = False
Me.SubFormB.Visible = True
....
Case C
...
End Select

You can stack the subforms on top of each other and control them through
their visible property.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top