2.2.3.49 CT_DataMacro

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

Referenced by: CT_DataMacros

Specifies a Data Macro.

Child Elements:

Parameters : A CT_ParameterDefinitions element that specifies the list of parameters that the macro accepts when called. MUST NOT be present if the Event attribute is present.

Statements : A CT_DataMacroStatements element that specifies the commands to be performed when the macro is called.

Attributes:

Event : An ST_DataObjectEvent attribute that specifies the type of event that will cause the macro to be called. MUST NOT be present if the Name attribute is present.

Name : An ST_ObjectName attribute that specifies the name of the macro. MUST be present if the Event attribute is not present; MUST NOT be present if the Event attribute is present. All CT_DataMacro elements contained within the same CT_DataMacros element MUST have unique values for the Name attribute if the attribute is present.

The following W3C XML Schema ([XMLSCHEMA1/2] section 2.1) fragment specifies the contents of this complex type.

 <xsd:complexType name="CT_DataMacro">
   <xsd:sequence>
     <xsd:element name="Parameters" minOccurs="0" type="CT_ParameterDefinitions" wbld:cname="Parameters"/>
     <xsd:element name="Statements" minOccurs="0" type="CT_DataMacroStatements" wbld:cname="Statements"/>
   </xsd:sequence>
   <xsd:attribute name="Event" type="ST_DataObjectEvent" wbld:cname="Event" use="optional"/>
   <xsd:attribute name="Name" type="ST_ObjectName" wbld:cname="Name" use="optional"/>
 </xsd:complexType>

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