通过查询返回access数据库对象的名称

2016-02-19 19:07 1 1 收藏

下面是个简单易学的通过查询返回access数据库对象的名称教程,图老师小编详细图解介绍包你轻松学会,喜欢的朋友赶紧get起来吧!

【 tulaoshi.com - 编程语言 】

使用下列SQL语句来获取你想要的

查询:
SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (MSysObjects.Type)=5 ORDER BY MSysObjects.Name;

窗体: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (MSysObjects.Type)=-32768 ORDER BY MSysObjects.Name;

表: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (Left$([Name],4) "Msys") AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;

报表:

SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (MSysObjects.Type)= -32764 ORDER BY MSysObjects.Name;

模块: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (MSysObjects.Type)= -32761 ORDER BY MSysObjects.Name;

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/bianchengyuyan/)

宏: SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)"~") AND (MSysObjects.Type)= -32766 ORDER BY MSysObjects.Name;

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/bianchengyuyan/)

来源:http://www.tulaoshi.com/n/20160219/1620049.html

延伸阅读
如何操作access数据库 一、查找记录 find.htm 请输入您要查找的人的姓名: find.asp 二、过滤记录 filter.asp 三、添加记录 add.asp 四、更新记录 和上面的“添加记录”一样,只需把“添加”命令改做“更新”就可以了: objrs.update 五、删除记录 本文来自学习网(www.gzu521.com),原文地址:http://www.gzu521.com/campus/artic...