Hi there, I am trying to populating list boxes with the names of the fields of the tables and I would like to make a SELECT in the Row Source property.
Does anybody have an idea about or another way to do it.
Thanks
j
If it's Access, there are seven fora dedicated to Access, might try one of those for the next Access question? Getting field names in Access can't be done through SQL, as far as I know, but set the rowsourcetype of the list to field list, and the rowsource to the name of the table you wish to show the fields from...
If you're using ADO or DAO, then the Field.Name property can be used like this...
Code:
...
set rst open .....
for each fld in rst.fields
msgbox = fld.name
next
Skip, [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should... Never hatchet your Counts before they chicken!
Skip, [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should... Never hatchet your Counts before they chicken!
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.