Link to home
Start Free TrialLog in
Avatar of MattWilkinson
MattWilkinsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

List all tables in an Access database

Is there a way I can list all the tables in an Access database using a SQL query?
SImilar to the SQL Server:
select TABLE_NAME from INFORMATION_SCHEMA.TABLES

But something that will work on Access
ASKER CERTIFIED SOLUTION
Avatar of jamesgu
jamesgu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MattWilkinson

ASKER

I get the following error when I run that query

Record(s) cannot be read; no read permission on 'MsysObjects'.
Avatar of jamesgu
jamesgu

you may have to login as an admin or granted read permission on system tables
SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How do I login as admin on an access database?

I am local admin on the machine (db file is on c:\ drive) with no password set
in access, go to tools\security\user and group permissions

check what is the current user you're using