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!

How do I populate list box with field names of a table?

Status
Not open for further replies.

Nevets

Technical User
Jul 23, 2001
27
US
I am trying to build an interface to allow users to select which fields from a specific table they wish to include in a query.
For some reason I am stumped on trying to figure out how to get the field names of a table, rather than it's records to populate the list box. Can anyone help?

The next step will be to pass the selected fields to a SQL statement... but I'll fight that part of the battle when I get to it. :)
 
Set the RowSourceType property to Field list and the RowSource to the table name.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks. I had the feeling I was missing something fairly simple.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top