Results 1 to 3 of 3

Thread: Help!Hooking combo boxes to textboxes.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73

    Post

    I want to hook up 4 textboxes to a combo box so that when someone selects a choice in the combo it automatically sends further info on that selection into the textboxes next to it. For example, when they select a name in the combo I want it to fill in the address, phone, etc of that person into the textboxes. How can I connect that? Thanks.

  2. #2
    Lively Member
    Join Date
    Oct 1999
    Location
    -
    Posts
    101

    Post

    Find the combo box "CLICK" event and put some code, whatever you want your application to perform. Everytime you click or change the index of your combo box, this code will be executed.

    e.g. if you have a combo box named MyCombo, then find the click event

    Private sub MyCombo_Click()

    TextBoxName.Text = MyTable("Name")
    TextBoxAge.Text = MyTable("Age")
    TextBoxSex.Text = MyTable("Sex")
    TextBoxAddress.Text = MyTable("Address")

    End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    Greenville
    Posts
    73

    Post

    That helped but now when I change my selection the same date stays in the text boxes. Any suggestions?

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