Results 1 to 3 of 3

Thread: [RESOLVED] Show form based on combo box selection.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    24

    Resolved [RESOLVED] Show form based on combo box selection.

    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

  2. #2
    Hyperactive Member jp26198926's Avatar
    Join Date
    Sep 2008
    Location
    General Santos City, Philippines
    Posts
    310

    Re: Show form based on combo box selection.

    Quote Originally Posted by _91SW20
    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?
    Code:
    Private Sub Command2_Click()
    If Combo1.Text = "form2" Then Form2.Show
    If Combo1.Text = "form3" Then Form3.Show
    End Sub
    "More Heads are Better than One"

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    24

    Re: Show form based on combo box selection.

    Thanks jp that code works like a charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width