On a form, you could create a listbox, set it's rowsource to the table you wish to display the fields for, then select "Field List" as rowsource type.
Else I think you'd need to programatically retrieve the field names, for something like this quick and dirty approach:
[tt]dim strFields as string
dim lngCount as long
dim rs as dao.recordset
set rs=currentdb.openrecordset("mytable")
for lngCount = 0 to rs.fields.count-1
strFields=rs.fields(lngCount).name & ", "
next lngCount
msgbox mid$(strFields,1,len(strFields)-2)[/tt]
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.