Show All

# useQueryAdapter Element

Specifies that the form is to be submitted to the same data adapter as specified in the query element.

## Type

    xsd:complexType

## Remarks

The useQueryAdapter element is an optional element of the submit element.

The query element used is the one that is the child element of the xDocumentClass element, not the query element that is a child of the dataObject element.

The useQueryAdapter element does not contain any attributes or child elements.

## Example

The following is an example of the useQueryAdapter element:

    <xsf:submit
       caption="Su&amp;bmit"
       disableMenuItem="no"
       onAfterSubmit="KeepOpen"
       showStatusDialog="yes"
       showSignatureReminder="yes">
       <xsf:useQueryAdapter/>
       <xsf:successMessage>Submit was successful.</xsf:successMessage>
       <xsf:errorMessage>Submit was not successful.</xsf:errorMessage>
    </xsf:submit>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp