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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo Box displaying table field names...

Status
Not open for further replies.

estiguar

Programmer
Jan 27, 2003
10
GB
Hi there!
Does anybody know how to create a combo box which would display the field names of a table? An answer would be very much appreciated!
Thanks,
Roberto
 
If you define an ADODB recordset and then do
Code:
rst.open "tablename", activeconnection

For Each fld In rst.Fields
  Combo1.AddItem fld.Name
Next
it should give you the field names in the combo box.

PeteJ
(Contract Code-monkey)

It's amazing how many ways there are to skin a cat
(apologies to the veggies)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top