2.2.3.38 CT_DataMacroStatements

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

Referenced by: CT_ForEachRecord, CT_LookupRecord, CT_CreateRecord, CT_EditRecord, CT_DataIf, CT_DataMacroStatementGroup, CT_DataElseIf, CT_DataElse, CT_DataMacro

Container type that contains zero or more elements that specify the commands to be performed when a Data Macro (section 2.1.2.2) is called.

Child Elements:

Action: A CT_Action (section 2.2.3.20) element that specifies a single macro action.

Comment: An ST_LongString (section 2.2.4.4) element that is ignored when the commands are performed.

ConditionalBlock: A CT_DataConditionalBlock (section 2.2.3.36) element that specifies a conditional branch.

CreateRecord: A CT_CreateRecord (section 2.2.3.26) element that specifies a macro block that creates a record.

EditRecord: A CT_EditRecord (section 2.2.3.28) element that specifies a macro block that changes a record.

ForEachRecord: A CT_ForEachRecord (section 2.2.3.22) element that specifies a macro block that performs actions on multiple records.

LookUpRecord: A CT_LookupRecord (section 2.2.3.24) element that specifies a macro block that performs actions on a single record.

StatementGroup: A CT_DataMacroStatementGroup (section 2.2.3.40) element that specifies a user-defined grouping of macro commands.

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

 <xsd:complexType name="CT_DataMacroStatements">
   <xsd:choice minOccurs="0" maxOccurs="unbounded">
     <xsd:element name="Action" type="CT_Action" wbld:cname="Action"/>
     <xsd:element name="Comment" type="ST_LongString" wbld:cname="Comment"/>
     <xsd:element name="ForEachRecord" type="CT_ForEachRecord" wbld:cname="ForEachRecord"/>
     <xsd:element name="LookUpRecord" type="CT_LookupRecord" wbld:cname="LookupRecord"/>
     <xsd:element name="CreateRecord" type="CT_CreateRecord" wbld:cname="CreateRecord"/>
     <xsd:element name="EditRecord" type="CT_EditRecord" wbld:cname="EditRecord"/>
     <xsd:element name="ConditionalBlock" type="CT_DataConditionalBlock" wbld:cname="ConditionalBlock"/>
     <xsd:element name="StatementGroup" type="CT_DataMacroStatementGroup" wbld:cname="StatementGroup"/>
   </xsd:choice>
 </xsd:complexType>

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