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

Application.DoCmd 属性 (访问)Application.DoCmd Property (Access)

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

无效属性可用于访问只读DoCmd对象和其相关的方法。只读的级联You can use the DoCmd property to access the read-only DoCmd object and its related methods. Read-only DoCmd.

语法Syntax

表达式无效expression. DoCmd

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

示例Example

下面的示例在"窗体"视图中打开一个窗体并移到一条新记录。The following example opens a form in Form view and moves to a new record.

Sub ShowNewRecord() 
 DoCmd.OpenForm "Employees", acNormal 
 DoCmd.GoToRecord , , acNewRec 
End Sub

另请参阅See also

概念Concepts

Application 对象Application Object

© 2018 Microsoft