DataBase and ComboBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dink007
    New Member
    • Nov 2008
    • 1

    DataBase and ComboBox

    Hello All.
    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?

    Code:
     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
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Hey there, good buddy!

    I am sending overr to the Access forum for a closer look.

    Please return to us if you feel this is VB6 related.

    In a bit!

    Comment

    Working...