2.2.3.45 CT_MacroReference

Target namespace: http://schemas.microsoft.com/office/accessservices/2009/11/application

Referenced by: CT_UserInterfaceMacros

Specifies a reference to a named User Interface Macro. MUST NOT be present except in a CT_UserInterfaceMacros element that is a child of a CT_View element.

Attributes:

Event : An ST_UserInterfaceObjectEvent attribute that specifies an event that causes the macro to be called.

For : An ST_ObjectName attribute that specifies the name of a control. 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 mixed="true" name="CT_MacroReference">
   <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.4 for the full W3C XML Schema ([XMLSCHEMA1/2] section 2.1).