Table of contents
TOC
折叠目录
展开目录

CurrentProject.Path 属性 (访问)CurrentProject.Path Property (Access)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

Path属性可用于确定对于 Microsoft Access 项目 (.adp) 或 Microsoft Access 数据库中存储数据的位置。只读的字符串You can use the Path property to determine the location where data is stored for a Microsoft Access project (.adp) or Microsoft Access database. Read-only String.

语法Syntax

表达式路径expression. Path

表达式_表示当前项目中的一个对象变量。_expression A variable that represents a CurrentProject object.

注解Remarks

Path属性可用于确定通过数据库或项目的当前项目CodeProject对象存储的信息的位置。You can use the Path property to determine the location of information stored through the CurrentProject or CodeProject objects of a project or database.

示例Example

下面的示例显示一条消息,表明当前 Access 项目或数据库的磁盘位置。The following example displays a message indicating the disk location of the current Access project or database.

MsgBox "The current database is located at " &; Application.CurrentProject.Path &; "." 

另请参阅See also

概念Concepts

当前项目对象CurrentProject Object

© 2018 Microsoft