You can get a listing of tables with a simple query:
SELECT Name
FROM msysobjects
WHERE Name Not Like "Msys*" AND Type=1 Or Type)=6;
MSysObjects is a hidden table in Access that keeps track of all the objects
in the Database Window (tables, forms, reports, etc). Type 1 are native
tables. Type 6 are linked tables. The SQL above also assumes you don't
want to see the other "system" tables in your list, so excludes anything
starting with MSys.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L
"dc" <(E-Mail Removed)> wrote in message
news:E3BDB648-EC59-4620-8EA9-(E-Mail Removed)...
> I am trying to list all the table names in a Access 2002 database and
> subsequently run a query against a subset of the tables. Is there a way to
> list the tables to file?