Hi guys, I have a button for editing the fields and my problem is I want a form to show when I click the Edit button based on the selected option from the combo box. Please help! Thanks
Printable View
Hi guys, I have a button for editing the fields and my problem is I want a form to show when I click the Edit button based on the selected option from the combo box. Please help! Thanks
something like this?Quote:
Originally Posted by _91SW20
Code:Private Sub Command2_Click()
If Combo1.Text = "form2" Then Form2.Show
If Combo1.Text = "form3" Then Form3.Show
End Sub
Thanks jp that code works like a charm.