2.2.3.43 CT_UserInterfaceMacro

Target namespace: http://schemas.microsoft.com/office/accessservices/2010/12/application

Referenced by: CT_UserInterfaceMacros, UserInterfaceMacro

Specifies a User Interface Macro (section 2.1.2.1).

Child Elements:

Statements: A CT_UserInterfaceMacroStatements (section 2.2.3.37) element that specifies the commands to be performed when the macro is called.

Attributes:

Event: An ST_UserInterfaceObjectEvent (section 2.2.4.12) 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 (section 2.2.4.1) attribute that specifies the name of a control. MUST NOT appear except in 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.

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: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:complexType>

See section 5.1 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).