Hi all,
heres my code
Dim con As New MySqlConnection("server=localhost; user id=root; password=phoenix0931; database=accounts;")
Try
con.Open()
Dim dat As MySqlDataAdapter = New MySqlDataAdapter("SELECT customers_id,customer_name,customer_add FROM customers ", con)
Dim dt As New DataSet
dat.Fill(dt, "customers")
ComboBox1.DataSource = dt.Tables("customers").DefaultView
ComboBox1.DisplayMember = "customer_name"
ComboBox1.ValueMember = "customers_id"
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
con.Close()
End Try
my Problem what code will i add if im going to display my customer_add in my textbox2
match on the record that i pick in the combo box..