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!

Making the ComboBox do more.... 1

Status
Not open for further replies.

tdbeargrrl

Programmer
Feb 26, 2002
10
US
When the user makes a selection in the combo box in addition to populating that field in the table a second form (not a sub form - a second small form) should open. Is there anyway I could make this happen?
 
In the Combobox's After Update event you could add the following:

DoCmd.OpenForm "YourFormName" John Ruff - The Eternal Optimist :)
 
Can this solution be expanded to open a different form depending on which choice was selected in the combo box.

IE - Third Party Lien opens one form; Overpayment opens a different one.

Thanks
 
Hi!

Use a Select statement:

Select Case YourComboBox.Value
Case "Third Party Lien"
DoCmd.OpenForm "LienForm"
Case "Overpayment"
DoCmd.OpenForm "OverPayment"
etc.
End Select

Of course, you will need to use the actual form names and field values that exist in your database. Note, the value of the combo box comes from the bound column so you will need to do the select statement on the column you chose as the bound column.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top