2.2.3.48 CT_UserInterfaceMacro
Target namespace: http://schemas.microsoft.com/office/accessservices/2009/11/application
Referenced by: CT_UserInterfaceMacros, UserInterfaceMacro
Specifies a User Interface Macro.
Child Elements:
Statements : A CT_UserInterfaceMacroStatements element that specifies the commands to be performed when the macro is called.
Sub : A CT_Sub element that specifies a subroutine.
Attributes:
Event : An ST_UserInterfaceObjectEvent attribute that specifies the event that will cause the macro to be called. MUST be present if the macro is embedded in a Form; MUST NOT be present otherwise.
For : An ST_ObjectName attribute that specifies the name of a control. MUST NOT appear except on a macro that is embedded in a Form. If this attribute is not present, the macro will be called by the Form itself. If present, the value MUST be the name of a control on the containing Form whose type supports the event specified by the Event attribute.
MinimumClientDesignVersion : An Ignored Value.
The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.
-
<xsd:complexType name="CT_UserInterfaceMacro"> <xsd:sequence> <xsd:element name="Statements" minOccurs="0" type="CT_UserInterfaceMacroStatements" wbld:cname="Statements"/> <xsd:element name="Sub" minOccurs="0" maxOccurs="unbounded" type="CT_Sub" wbld:cname="Sub"/> </xsd:sequence> <xsd:attribute name="For" type="ST_ObjectName" wbld:cname="For" use="optional"/> <xsd:attribute name="Event" type="ST_UserInterfaceObjectEvent" wbld:cname="Event" use="optional"/> <xsd:attribute name="MinimumClientDesignVersion" type="ST_ShortString" wbld:cname="MinimumClientDesignVersion" use="optional"/> </xsd:complexType>
See section 5.4 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).