Hi,
anyone know how to update on runtime the combobox from textbox?
i write this code work fine only after exit the program and re-open again then will update the data from textbox.
database: MS Access
connection : ADODC
my code
anyone help is much appreciated
:confused::confused:
anyone know how to update on runtime the combobox from textbox?
i write this code work fine only after exit the program and re-open again then will update the data from textbox.
database: MS Access
connection : ADODC
my code
Code:
Private Sub Combo2_Change()
Adodc1.RecordSource = "select * From Lidstype"
Adodc1.Refresh
Do
Combo2.AddItem Adodc1.Recordset.Fields("Lids2")
Adodc1.Recordset.Update
Adodc1.Recordset.MoveNext
Loop Until Adodc1.Recordset.EOF = True
Combo2.ListIndex = -1
End Sub
:confused::confused: