2.2.3.81 CT_FormDef

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

Referenced by: FormDef

Specifies a form.

Child Elements:

Expressions: A CT_Expressions (section 2.2.3.79) element that specifies all the expressions embedded in the form.

Html: A string ([XMLSCHEMA2] section 3.2.1) element that specifies the form and its controls, properties and layout. MUST be present. MUST be a CDATA section ([XML] section 2.7) that contains valid HTML markup.

Query: A CT_Query (section 2.2.3.18) element that specifies a Query (section 2.1.3) to serve as the data source of the form.

RecordSource: A string ([XMLSCHEMA2] section 3.2.1) element that specifies the name of a Table (section 2.1.1) or Query (section 2.1.3) that is the data source of the form. If the Query element is present, RecordSource MUST specify the same query.

UserInterfaceMacros: A CT_UserInterfaceMacros (section 2.2.3.41) element that specifies all the User Interface Macros embedded in the form.

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

 <xsd:complexType name="CT_FormDef">
   <xsd:sequence>
     <xsd:element name="RecordSource" type="xsd:string" wbld:cname="RecordSource" minOccurs="0"/>
     <xsd:element name="Html" wbld:cname="Html" type="xsd:string"/>
     <xsd:element name="UserInterfaceMacros" wbld:cname="UserInterfaceMacros" wbld:codeName="UserInterfaceMacros" type="CT_UserInterfaceMacros" minOccurs="0"/>
     <xsd:element name="Expressions" wbld:cname="Expressions" wbld:codeName="Expressions" type="CT_Expressions" minOccurs="0"/>
     <xsd:element name="Query" wbld:cname="Query" wbld:codeName="Query" type="CT_Query" minOccurs="0"/>
   </xsd:sequence>
 </xsd:complexType>

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