Results 1 to 3 of 3

Thread: combobox change to update a textbox ...

  1. #1

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Unhappy

    ARRRGGGHHHH. This one is driving me nuts. I have 1 combobox, & 1 textbox on a form with the following code :
    Code:
    Private Sub Form_Load()
        Combo1.AddItem "1"
        Combo1.AddItem "2"
    End Sub
    
    Private Sub Combo1_Change()
        If Combo1.text = "1" Then
            Text1.Text = "some information here"
        End If
    End Sub
    I think I have looed at every property of this, but I need the textbox to display some text if a certain option (in this case 1) is selected within the combobox. ANY ideas will be helpful here as I am at my wits end!!!

    Thank you everyone !

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  2. #2
    Guest
    Put your things into Combo1_Click.

  3. #3

    Thread Starter
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Thank you MerryVIP, I could've sworn I tried that one. Works a treat!

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

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