Column Names from a Table in MS Access

  • Thread starter Matthias Kwiedor
  • Start date
M

Matthias Kwiedor

Hi!

I know this is a realy simple question (maybe) :)

But how can i get with an SQL Query all column names out from a table?

Example:

table-name: test
columns: - test_1
- test_2
- test_3

and now i want with "select from test" getting the headers back (test_1,
test_2, test_3)

How can i do this?


Thanks



Matthias
 
S

Sean

You would be better off writing some DAO code to retrieve the info you
require.

Check out the Table object of DAO. it will have a Fields collection, you
can loop thru this collection.
Look in the help for code examples.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top