hi guys,
wondered if anyone could help please,
i have populated my combobox with the names i want, but im at a total loss on how to populate the textboxes based on my selection
im guessing its got something to do with combobox_selectedIndexChanged but i dont know how to do it,
any ideas
thanks guys
'fills variable with the connection technology and file path of the database
ConStr = "Provider = Microsoft.ACE.OLEDB.12.0;Data Source = C:\Users\CFA-Director\Desktop\Computer First Ade VB.net\Computer First Ade\Computer First Ade\CFA_DB.mdb"
sql = "SELECT * FROM tbl_Customers" 'fills variable with the SQL query
Try
con = New OleDbConnection(ConStr)
con.Open()
da = New OleDbDataAdapter(sql, con)
ds = New DataSet
da.Fill(ds, "Customer")
cbox_Customer.DataSource = ds.Tables("Customer")
cbox_Customer.DisplayMember = "cust_Compnay"
cbox_Customer.ValueMember = "cust_Company"
cbox_Customer.SelectedIndex = -1
Catch ex As Exception
MessageBox.Show(ex.ToString())
End Try
End Sub
Private Sub cbox_Customer_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles cbox_Customer.SelectedIndexChanged
End Sub