다음을 통해 공유


Form.CommandExecute Event (Access)

Occurs after the specified command is executed. Use this event when you want to execute a set of commands after a particular command is executed.

Syntax

.CommandExecute(Command, )

A variable that represents a Form object.

Parameters

Name

Required/Optional

Data Type

Description

Command

필수

Variant

The command that is executed.

Return Value

nothing

Remarks

The OCCommandId, ChartCommandIdEnum, and PivotCommandId constants contain lists of the supported commands for each of the Microsoft Office Web Components.

Example

The following example demonstrates the syntax for a subroutine that traps the CommandExecute event.

Private Sub Form_CommandExecute(ByVal Command As Variant) MsgBox "The command specified by " _ 
 & Command.Name & " has been executed." 
End Sub

참고 항목

개념

Form Object

Form Object Members