Microsoft KB Archive/282388

= ACC2002: OutputTo Macro Action or Method Creates an Incomplete Data Access Page =

Article ID: 282388

Article Last Modified on 9/27/2006

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



This article was previously published under Q282388



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
When you save a form or a report to a data access page by using the OutputTo macro action or method, there are problems with the resulting page. These problems include:


 * The script validation to verify the browser or Office Web Components on the computer is missing.
 * Banners from sections on the page are missing.
 * The HTML STYLE tag is outside of the HTML HEAD tag on the page.
 * There are missing HTML META tags on the page.



RESOLUTION
Open the page in the Data Access Page designer in Access, and then save it.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
You can save forms and reports as data access pages. This can help you get started converting existing form-based applications for use on your intranet or Internet site.

Steps to Reproduce the Behavior
CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.

 Start Access, and then open the sample database Northwind.mdb.  Insert a new module, and then type or paste the following code: Sub SaveFormAsPage DoCmd.OutputTo acOutputForm, &quot;Customers&quot;, acFormatDAP, &quot;c:\Customers.htm&quot;, True End Sub   Type the following line in the Immediate window, and then press ENTER. SaveFormAsPage  Internet Explorer should open the page that you just saved. Click Source on the View menu to view the HTML for the page.

Note the problems that are described in the &quot;Symptoms&quot; section of this article.

<div class="references_section">