Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a form from a combo box

Status
Not open for further replies.

masanovic

Programmer
Jun 23, 2008
12
I have populated a combo box which does so after initialising. How can I open a form based on the selection the user makes in the combo box?

Example: Select "June2008" in combo box and form called June2008 opens.

 
If this is for MS-Access,

Place this in the After Update event of the combo box:

Hard coded, would look like this:

DoCmd.OpenForm "June2008"


As a variable:

DoCmd.OpenForm Me.NAMEOFComboBox

Replace NameOfComboBox with the actual name of the combobox
 
Ive done it now. Thank you very much for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top