ACC2002: ExportXML Method of the Data Source Control Is Incorrectly Documented in Help (295468)
The information in this article applies to:
This article was previously published under Q295468 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
The ExportXML method of the Data Source Control Help topic shows the syntax to save the current recordset as an XML file as follows:
expression.ExportXML(XMLDataTransformFile, eEncoding)
This syntax is incorrect.
RESOLUTION
Use the following syntax:
MSODSC.ExportXML [eEncoding]
The eEncoding argument is optional. Of the six constants, or values, that can be assigned to the eEncoding argument, only two are valid.
They are:
If you exclude this argument when you use this method, dscUTF8 (zero) will be the value used by default. If you include this argument and choose to use the constant instead of the literal value, you must qualify the constant, similar to the following:
MSODSC.ExportXML MSODSC.Constants.dscUTF8
If you use a constant without including a qualifier, such as MSODSC.Constants., the ExportXML method will assign a value of zero to the eEncoding argument.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/5/2003 |
---|
Keywords: | kbbug kbDAPScript kbdocerr kberrmsg kbnofix KB295468 |
---|
|