Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list control populated with fields name

Status
Not open for further replies.

cruicu

Technical User
Nov 25, 2002
24
RO
Hello all!
I use a data control to connect to a dbf table.
I need to use a list control populated with fields name of this dbf file.
Can somebody help me?
Thanks!
 
Loop through the fileds collection of the recordset and add the names to the listbox using the List1.AddItem Method.

Dim fld As ADODB.Field
For Each fld In Adodc1.Recordset.Fields
List1.AddItem fld.Name
Next Fld
 
THANK YOU CCLINT!
THE SOLUTION work very well!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top