How do I modify the webbrowser control in Access to open all links in the control rather than launching a new IE window?

Posted on 2011-10-14
Last Modified: 2012-06-19
I currently have an Access database with a WebBrowser ActiveX control on my primary form. When surfing in the control, most links will launch a new IE window when clicked. I would like to navigate to a clicked link inside the webbrowser control. Can anyone advise how to modify a setting or hack some code to better control this behavior?

Question by:mpduffey
    LVL 8

    Expert Comment

    by:VipulKadia[, new=0[, autoraise=True]])
    Put new=0 to open link in same browser window.

    For more information see this link :
    LVL 56

    Accepted Solution


      If I'm not mistaken, the web browser control is an instance of IE, so the IE settings are what control it.

     As a quick test, try changing the behavior in IE option under Tabs.   If that works, then we'll figure out a way to get that change via code.

    LVL 74

    Expert Comment

    by:Jeffrey Coachman
    <No Points wanted>

    <When surfing in the control>
    Just note that the web browser control was never meant for you to "Surf" inside of it.
    I was designed as just a quick, simple way to view web content

    As you have probably seen, has many other drawbacks that make "Browsing" not very convenient.


    Author Comment

    All -

    Thank you for the responses.

    VipulKadia - I am using Access, and so I am not sure that Python code will work. Can you confirm?

    Jim - you are correct, only there is no option to restrict the specific behavior I am looking for in the standard settings on IE 9.

    JeffCoachman - I am certain that you are right, but regardless of the original intent, I have a need for surfing inside my database form and so I am pursuing a solution nonetheless.


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
    The first two articles in this short series — Using a Criteria Form to Filter Records ( and Building a Custom Filter ( — discuss in some detail how a form can be…
    In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
    In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now