|
Access 系统表 MsysObjects 包含了数据库对象列表, 尽管未在文档中记载, 你仍可通过查询它来获取你想要的.
查询:
SELECT Name FROM MsysObjects WHERE Left$([Name],1)<>"~" AND Type=5 ;
窗体:
SELECT Name FROM MsysObjects WHERE (Left$([Name],1)<>"~" AND Type=-32768;
表:
SELECT Name FROM MsysObjects WHERE Left$([Name],1)<>"~" AND Left$([Name],4) <> "Msys") AND Type=1;
报表:
SELECT Name FROM MsysObjects WHERE Left$([Name],1)<>"~" AND Type= -32764 ;
模块:
SELECT Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") AND (MSysObjects.Type)= -32761;
宏:
SELECT Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") AND (MSysObjects.Type)= -32766; |
|