Getting list of database tables into text file

D

Don Wiss

There must be a way to get a list of a database's tables into a text file.
Any list of the tables I see in Access can't be tagged and put into the
clipboard. I'd rather not have to type in all the names. So how?

Don <www.donwiss.com> (e-mail link at home page bottom).
 
P

Paul Overway

If you only want local Access non-system tables, create a sub and run this
code. If you want all tables, comment out the If.


Dim db as database
Dim tdf as tabledef

Set db = currentdb()

For each tdf in db.tabledefs
If tdf.Attributes = 0 then
Debug.print tdf.name
End if
Next
 

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