ACC2002: Data Access Page That Contains Embedded XML May Open Slowly (283203)
The information in this article applies to:
This article was previously published under Q283203 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
In Access 2002, you can bind a data access page to XML embedded in the page or to an external XML file. Embedded XML is also referred to as an XML data island. If you open a page that is bound to a large XML data island, it may take a while for the page to open.
RESOLUTION
Instead of binding the data access page to an XML data island, use an external XML file to bind the page to. In addition, you may need to remove the XML data island from the page. To do so, follow these steps:
- Start Access 2002, and then open your data access page in Design view.
- Right-click the page in Design view, and then click Page Properties on the shortcut menu.
- In the property sheet, click the Data tab.
- Change the XMLLocation property to dscXMLDataFile.
- Verify that the UseXMLData property is set to True.
- In the XMLDataTarget property, type the name of a local XML file to save to, for example, MyXMLData.xml. If you do not enter a full path in this property, the XML file will be saved to the same folder as the page.
- On the Tools menu, point to Macro, and then click Visual Basic Editor.
- If the Immediate window is not visible, on the View menu, click Immediate Window.
- To remove the existing XML data island from the page, type the following code in the Immediate window, and then press ENTER:
DataAccessPages(0).Document.all.DSCXMLData.removeNode - To create the file specified in XMLDataTarget property and to bind the page, type the following code in the Immediate window, and then press ENTER:
DataAccessPages(0).MSODSC.ExportXML - Save the page, and then close the Visual Basic Editor.
- Open the page in Page view in Access. The page should open more quickly.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 9/27/2006 |
---|
Keywords: | kbbug kbDAP kbfix KB283203 |
---|
|