Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / productivity / Office / MS-Access

Query to get the object information a database in Microsoft Access

0.00/5 (No votes)
21 Feb 2011CPOL 7.5K  
Query to get the object information a database in Microsoft Access
SQL
SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE MSysObjects.Name Not Like "MsyS*" AND MSysObjects.Type=1
ORDER BY MSysObjects.Name;


Where type can be changed as per object type.

C++
MSysObjects.Type=1


Like Type is:
1 for Tables
5 for Queries
-32766 for Mocros
-32756 for DAP
-32761 for Modules

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)