Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

VB6- Database and combobox

Options
  • 31-07-2006 10:39pm
    #1
    Closed Accounts Posts: 1,061 ✭✭✭


    Hey, I have a database created(access 97) and basically, I have a form with a combo box.
    The database has these fields: name, address, telephone, email.
    I want all the names to be displayed in the combo box and when you click on a name, the address, telephone, and email will be displayed in separate text boxes.

    What's the best way to do that?
    I have a data control called data1 and so far, I can go through the records in the DB but can't get the names to display in the combo box.


Comments

  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Use the columnCount to set the number of columns in the combo box and set the boundcolumn to the first one if its your id column

    HTH


Advertisement