Microsoft KB Archive/184953

= ACC97: Form Exported to ASP Appears as Gray Box in Browser =

Article ID: 184953

Article Last Modified on 1/22/2007

-

APPLIES TO


 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q184953



IMPORTANT: This article contains information about editing the registry. Before you edit the registry, you should first make a backup copy of the registry files (System.dat and User.dat). Both are hidden files in the Windows folder.

Advanced: Requires expert coding, interoperability, and multiuser skills.



SYMPTOMS
When you export any form to an Active Server Pages (ASP) file and view it in a browser, it appears as a gray box. However, other objects exported to ASP are displayed correctly in a browser. This problem can occur regardless of the version of the operating system you are running or the version of Microsoft Internet Explorer that you are using.



CAUSE
There is a problem with the HTML Layout Control. Microsoft Access 97 forms in ASP format require the HTML Layout Control.



RESOLUTION
Rename the HTML Layout Control (Isctrls.ocx) and remove its CLSID key from the Windows registry; then reinstall a new version of the control. Use one of the following methods, depending on which type of Internet access you have.

Method 1 (If you have external Internet access)
Use this method if you have external Internet access. After you rename Isctrls.ocx and remove the CLSID key from the registry, you are automatically prompted to download the HTML Layout Control. Note that this method does not work if you do not have external Internet access.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows 95. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the Changing Keys And Values online Help topic in Registry Editor (Regedit.exe). Note that you should make a backup copy of the registry files (System.dat and User.dat) before you edit the registry.

 Locate the Isctrls.ocx file in the Windows\System or Winnt\System32 folder and rename it. Start the Registry Editor program, Regedit.exe.  Locate the following key under HKEY_CLASSES_ROOT:

      CLSID\{812AE312-8B8E-11CF-93C8-00AA00C08FDF}  Select the key and delete it. Quit Regedit.exe. Start Microsoft Access and save your form to an ASP file. When you see the dialog box that prompts you to provide Microsoft Active Server Pages Output options, delete the contents of the Server URL text box.</li> Start Microsoft Internet Explorer.</li> If you are using Internet Explorer version 3.x, click Options on the View menu; click the Security tab and make sure that the Allow Downloading Of Active Content check box is selected.

If you are using Internet Explorer version 4.x, click Internet Options on the View menu and click the Security tab. Click the Custom security level and then click Settings. Make sure the Download Signed ActiveX Controls is set to Prompt.</li> Open the ASP file in Internet Explorer.</li> When you are prompted to install and run the Microsoft HTML Layout Control, click Yes.</li></ol>

Method 2 (If you do not have external Internet access)
If you do not have external Internet access and you have Internet Explorer version 3.x, you can reinstall the HTML Layout Control by reinstalling Internet Explorer. Make sure you have access to the appropriate executable file to reinstall Internet Explorer.


 * 1) Follow steps 1 through 5 in Method 1.
 * 2) Re-install Internet Explorer 3.x. When you are prompted to select which optional Internet components are installed, click Yes. In the Optional Components dialog box, make sure that the HTML Layout Control check box is selected.

Note: If you do not have internet access, Internet Explorer 4.x setup cannot install the HTML Layout Control. It is not included with the setup program. The setup procedure downloads the control from the Microsoft Web site.

<div class="references_section">