ACC97: "Error Loading Browser" Message When Using Solutions.mdb

ID: Q174343


The information in this article applies to:


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you open the example "Browsing the World Wide Web" in the sample database Solutions.mdb, you receive the following error:

Error Loading Browser

You can view this form only on a computer that also has Microsoft Internet Explorer 3.0 or later installed.


CAUSE

You have installed Microsoft Internet Explorer 4.0 on your computer.


RESOLUTION

Follow these steps to change the IE3_Installed() function so that it searches the registry for the correct text value in the CLSID key for Microsoft Internet Explorer.

  1. Press SHIFT while opening the sample database Solutions.mdb.


  2. Open the module clsIE30Status.


  3. Locate the IE3_Installed() function and change the line
    
        IE3_Installed = (stFromSz(stValue) = "Microsoft Web Browser Control")
    
       to:
    
        IE3_Installed = (stFromSz(stValue) = "Microsoft Web Browser Version 1") 


  4. On the Debug menu, click Compile And Save All Modules.


  5. Open the WebBrowseWeb form.


  6. In the Connect To Internet dialog box, click OK.

    Note that you can open the form without receiving the error described in the "Symptoms" section.



MORE INFORMATION

The code in the Load event of the WebBrowseWeb form checks the IE30Present property of the clsIE30Status class to determine if Microsoft Internet Explorer 3.0 is installed on the computer. The IE30Present property is set by the function IE3_Installed, which is located in the class module clsIE30Status. This function searches HKEY_CLASSES_ROOT in the Windows registry; if it finds the entry "Microsoft Web Browser Control" in the CLSID key for Internet Explorer, it returns a value of True. However, the value of this Registry entry is "Microsoft Web Browser Version 1" if you have installed Microsoft Internet Explorer version 4.0. Because the function doesn't find the string "Microsoft Web Browser Control" in Internet Explorer's CLSID key, it sets the IE30Present property of the clsIE30Status class to False. As a result, you receive an error message.

Steps to Reproduce Behavior


  1. Install Microsoft Internet Explorer 4.0.


  2. Start Microsoft Access 97 and open the sample database Solutions.mdb. If the Developer Solutions Introduction form appears, click OK.


  3. In the Developer Solutions form, click What's New in Microsoft Access 97 in the Select A Category Of Examples list.


  4. In the Select An Example list, click Browsing The World Wide Web.


  5. In the Connect To Internet dialog box, click OK.

    Note that you receive the error message described in the "Symptoms" section.



REFERENCES

For more information about the Web Browser control, please see the following article in the Microsoft Knowledge Base:

Q165212 Finding Information on the Web Browser Control

Additional query words: ie4


Keywords          : kberrmsg DcmSltn 
Version           : WINDOWS:97
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: April 29, 1999