Getting table field names

E

Eidolon

Is there any way in Access that i can get a listing of the field names in a
table via SQL, not ADO code?
I am looking for something similar to the following SQL statement in ORACLE:

SELECT
COLUMN_NAME
FROM
USER_TAB_COLUMNS
WHERE
TABLE_NAME = 'CATALOG';

Thanks in advance.
- Aaron.
 
V

Van T. Dinh

Not in JET SQL, AFAIK.

You can use the VBA code with the DAO TableDef Object to retrieve the Field
Names.
 

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