Fill ComboBox with values from database
Fill ComboBox with values from database
Rate Fill ComboBox with values from database
(2(2 Vote))
On Error GoTo err
cbo.Clear
Dim aRec As New adodb.Recordset
aRec.Open sqlString, aCon
fillCombo = True
Do While Not aRec.EOF
cbo.AddItem aRec(strField)
aRec.MoveNext
Loop
aRec.Close
Set aRec = Nothing
Exit Function
err:
fillCombo = False
MsgBox err.Description
End Function
Fill ComboBox with values from database Comments
No comments yet — be the first to post one!
Post a Comment