Access Field Name List

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I print a listing of all the field names, data types, and descriptions
from a table?
 
Sorry to be a dummy, but once I copy the code, what do I do with it?
 
Select the Modules tab of the Database window.
Click New. Access opens a module.
Paste the code in.
Save with a name such as Module1.
Check that Access understands it by choosing Compile on the Debug menu.

If Access 2000 or 2002 gives an error message about unknown types, choose
References on the Tools menu, and check the box beside:
Microsoft DAO 3.6.

One it compiles okay, press Ctrl+G to open the Immediate window.
Then enter:
? TableInfo("Table1")
substituting the name of your table for Table1.

There is also a built-in way to document the table:
Tools | Analyze | Documenter
It's more difficult to get just the stuff you asked for though.
 

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

Back
Top