Results 1 to 6 of 6

Thread: Browser Control

  1. #1
    JamesP
    Guest

    Browser Control

    Argh!!!!! <img src=/S/smash.gif border=0 alt=smash width=30 height=26>

    I have been attempting to add a browser control to an access form and getting no where fast.
    I have set Microsoft Internet Controls in the references.
    I then put the Microsoft Web Browser control on the form.
    I used this code on the form load as directed:

    Me!ActiveXCtl0.Navigate Me!Text1

    But every time I try it, when the form loads I get the following error and nothing happens.

    Object doesn't support property or method.

    And debug highlights line of code above.
    Please Help!
    <img src=/S/sad.gif border=0 alt=sad width=15 height=15>

  2. #2
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Browser Control

    Hi James,

    I'm experiencing a similar problem with Access 97. It works like a charm in Access 2000, but 97 has problems for some reason.
    I think the problem (at least for me) is something dealing with the registering of the ActiveX control (SHDOCVW.DLL).

    When I first add the ActiveX control to the form (using 97) I see the nice Windows logo on the control. At that point I can also see the extended properties of the Web Browser in the property page of the object (MenuBar, FullScreen, etc...). After launching the form once, however, the properties disappear along with the logo. I think something odd is happening to "unregister" the ActiveX control as the form is launched.

    I've even manually added the SHODOCVW.DLL file to the References with no luck! I've also tried to the following:<pre>Dim Browser as WebBrowser
    Set Browswer = Me!ctlBrowser</pre>

    ....with no luck. It gives me the good ol' Error 13: Type Mismatch <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>

    I originally thought that my problem came from having both Access 2000 and 97 on the same machine, but I see that I'm not alone in my troubles. If anybody has any ideas for making this work in Access 97, please don't hesitate to share <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    TIA <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>

  3. #3
    JamesP
    Guest

    Re: Browser Control

    You described it precisely Mark! <img src=/S/hairy.gif border=0 alt=hairy width=15 height=15>
    I am using Access 97 too and the results are the same.
    I hope some one has an answer and we don't have to just live with it, because it would make a huge difference to my current project!

  4. #4
    JamesP
    Guest

    Re: Browser Control

    Mark

    I found some news on this problem. It seems that when you install a later version of Internet Exlporere than 3.0 it writes over the appropriate .dll. You can get around it by finding the older .dll and installing it again. This will not work for me because of the portability problem.
    Not good news but I guess it clears it up.

  5. #5
    Silver Lounger
    Join Date
    Jan 2001
    Location
    Indianapolis, Indiana, USA
    Posts
    1,862
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Browser Control

    Hi James,

    Thanks for the info. Just curious, which DLL?

    TIA <img src=/S/thumbup.gif border=0 alt=thumbup width=15 height=15>

  6. #6
    JamesP
    Guest

    Re: Browser Control

    Sorry <img src=/S/blush.gif border=0 alt=blush width=15 height=15> Mark but I can't find the original article on Microsoft sight that told my which .DLL to replace. I did find this article though. This article suggests installing IE 4. It also explains the problem a little more.

    http://support.microsoft.com/support/kb/ar...s/Q177/1/05.ASP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •