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

Form.BeforeInsert 属性 (访问)Form.BeforeInsert Property (Access)

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

返回或设置一个字符串,指示哪个宏、 事件过程或用户定义函数运行时插入事件发生。读/写。Returns or sets a String indicating which macro, event procedure, or user-defined function runs when the BeforeInsert event occurs. Read/write.

语法Syntax

表达式插入expression. BeforeInsert

表达式_一个表示窗体对象的变量。_expression A variable that represents a Form object.

注解Remarks

此属性的有效值为 macroname" macroname_所在的宏,"[事件过程]"这表明在与指定的对象,或"= functionname()"插入事件相关的事件过程_名称 functionname_是一个用户定义的函数的名称。Valid values for this property are "macroname" where _macroname is the name of macro, "[Event Procedure]" which indicates the event procedure associated with the BeforeInsert event for the specified object, or "=functionname()" where functionname is the name of a user-defined function.

示例Example

下面的示例指定在当前项目第一个窗体上插入事件时,应运行相关的事件过程。The following example specifies that when the BeforeInsert event occurs on the first form of the current project, the associated event procedure should run.

Forms(0).BeforeInsert = "[Event Procedure]" 

另请参阅See also

概念Concepts

窗体对象Form Object

© 2018 Microsoft