Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

how to update combo from the textbox ??

$
0
0
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
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

anyone help is much appreciated
:confused::confused:

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>