I suppose you want to retrieve multiple fields of the same table and put them together in a simple combobox
You could go about it like this.
**********************************
Dim myConn as New ADODB.Connection
Dim MyRS as New ADODB.Recordset
myConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Database\Test.mdb"
myRS.Open "SELECT * From myTbl", myConn, adOpenStatic, adLockPessimistic
myRS.Requery
With myRS
Do Until .EOF
cboCombo.AddItem !Name & " " & !ForeName
.MoveNext
Loop
End With
myRS.Close
myConn.Close
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.