I'm working on a Access Database project.
When my form runs the type field generates at the load.
The combobox populates with 2 fields.
If I select the 2nd feild it finds the correct information {Parameter Search}.
If I then try and select the 1st field the combo box shows the 2nd field twice.
Any suggestions on how to fix?
Expand|Select|Wrap|Line Numbers
- Private Sub ButTypeSelect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButTypeSelect.Click
- Try
- 'Me.StockTableAdapter.FillBySearchSN(Me.StockDataSet.stock, Me.TextBoxSearch1.Text & "%", Me.ComboBoxTypeName.Text)
- 'Me.StockTableAdapter.FillBySearchStock(Me.StockDataSet.stock)
- Catch ex As Exception
- System.Windows.Forms.MessageBox.Show(ex.Message)
- End Try
- End Sub
- Private Sub TypeNameComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TypeNameComboBox.SelectedIndexChanged
- Me.TypeBindingSource.ResetBindings(True)
- End Sub