ACC97: "An ActiveX Object on This Page May Be Unsafe" Message with ASP Form (175294)
The information in this article applies to:
This article was previously published under Q175294 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you export a Microsoft Access form to ASP format and then view the
result in a browser, you receive the following message:
An ActiveX object on this page may be unsafe. Do you
want to allow it to initialize and be accessed by scripts?
You also receive this message each time you move to another record.
CAUSE
The prompt appears because you are using the HTML Layout Control with
Microsoft Internet Explorer version 4.0. The HTML Layout Control processes
the ActiveX Layout file associated with a form that has been exported to
ASP format; the name of this file is in the format <formname>alx.asp.
This behavior is the result of enhancements that have been made to
Microsoft Internet Explorer 4.0, and it does not occur if you are using
Microsoft Internet Explorer 3.x.
RESOLUTION
To avoid being prompted when you open an ASP file and move to other
records, add the server that contains the ASP file to the Trusted sites
zone. Then change the security for the Trusted sites zone to enable
initialization and scripting of ActiveX controls not marked as safe.
WARNING: You should consider any security implications before implementing
this resolution.
- Start Microsoft Internet Explorer 4.0.
- On the View menu, click Internet Options, and then click the Security
tab.
- In the Zone box, select Trusted Sites Zone, and then click Add Sites.
- In the Trusted sites zone dialog box, type the name of the server on
which the ASP file is located in the text box under "Add this Web site
to the zone." If you require server verification for all sites in this
zone, type https://<servername>;
otherwise, type http://<servername> and click to clear the Require
Server Verification check box.
- Click Add, and then click OK.
- On the Security tab in the Internet Options dialog box, click Custom,
and then click Settings.
- In the Security Settings dialog box, change the setting for "Initialize
and script ActiveX controls not marked as safe" from Prompt to Enable,
and then click OK.
- In the Internet Options dialog box, click OK. Note that you can now open
ASP files in Internet Explorer 4.0 and move to different records
without receiving a prompt.
Modification Type: | Minor | Last Reviewed: | 1/26/2005 |
---|
Keywords: | kberrmsg kbprb KB175294 |
---|
|