I cannot seem to get the datagrid to update with the correct data from the combobox selection the program just crashes. Do I need to bind to the combobox some how?? Any help or advise would be apreciated
Private Sub cboBarcodeInCust_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboBarcodeInCust.SelectedIndexChanged
Dim ds As New DataSet
Dim Count As New SqlDataAdapter("Select * From VwBarcodeTotals where AccountNo like = '" & cboBarcodeInCust.SelectedValue & "'", Con)
Count.Fill(ds, "BarcodeTotals")
dgWorkwearIn.DataSource = ds.Tables("BarcodeTotals")
dgWorkwearIn.Columns("AccountNo").Visible = False