Blog Post

Access Blog
2 MIN READ

New Edge Browser Control in Microsoft Access

lindalu-MSFT's avatar
lindalu-MSFT
Icon for Microsoft rankMicrosoft
Aug 23, 2023

We’re excited to announce the release of the new Edge Browser Control in Microsoft Access! This control allows you to seamlessly integrate modern web content into your Access forms and reports. 

How to use the Edge Browser control 

You can find the new control in design view in the control gallery on the Form Design tab in the Controls section: 

 

  1. In form view, select the control, specify a URL, and select OK. 
       
  1. Switch to form view and you’re up and running! 

New capabilities and important changes 

Unlike the old browser control, you can use the new Edge browser control in continuous forms, reports, and renders for printing. To access Edge’s powerful DevTools, right-click, and choose Inspect. 

Navigate to local files 

If you want to navigate to a local file instead of a web page, you must use the https://msaccess prefix before the file path in the address. For example: https://msaccess/C:\Users\user\Documents\test.html 

Trusted Domains property 

By default, navigation via links, and automatic redirects away from the page the browser currently shows, are blocked. To allow these navigations, specify a table name or query name in the Trusted Domains property in the Property Sheet. In this case, the table or query's first output column must contain the URLs that you want to allow the browser to link to and automatically redirect to. This is especially helpful for pages that automatically redirect to a login page that doesn't exist on the same domain. 

No Object property 

Previously, when writing VBA for the old browser, you'd reference the Object property of the control, which allowed you to use the MSHTML VBA API built into the underlying browser engine. This was useful for performing tasks such as HTML DOM manipulation. Unfortunately, the browser engine used in the new control, WebView2, doesn’thave a built in VBA API, so we added some VBA functions directly to the control within Access. These include: 

  • ExecuteJavascript 
  • RetrieveJavascriptValue 
  • Navigate 
  • Refresh 
 

Availability

Edge Browser Control in Microsoft Access is enabled now in Current Channel.
It will be enabled in Monthly Enterprise Channel in version 2307, which will be released on Sept 12, 2023.
It will be enabled in Semi-Annual Channel (Preview) when it moves to Version 2308, also on Sept 12.
It will be enabled in Semi-Annual Channel when it moves to Version 2308, on Jan 9, 2024.

 

For more information, see EdgeBrowserControl methods. You can find additional info in the Use the Edge browser control on a form article on support.microsoft.com.

We hope this new control will unlock many powerful scenarios and look forward to any feedback on the Access Feedback Forum.

Updated Aug 23, 2023
Version 2.0

17 Comments

  • danielchent1's avatar
    danielchent1
    Copper Contributor

    I completely agree.

    while Microsoft mighty machine will take years to come with some solution and it will still be buggy. 

    good small company made it.

    take a look at https://antview.dev/

    there are still small issues however huge difference in response time.

    ti work using edgeview2

     

     

  • rberman's avatar
    rberman
    Copper Contributor

    The complete lack of DOM access alone makes this a non-starter. No API? Non-Starter. Use as web page viewer? Sure, if I ever have that requirement. One use for the browser control has been to show a "rich text" type log, especially when the text box in rich text mode limits to around 32K characters, but a longer log is needed  for display. Can't do that now, since the "value" property doesn't seem to have any relationship to what is actually displayed. And did I mention no DOM access, so can't get there from...anywhere.

     

    I won't even go into the constant lock-ups and crashes, other than to mention constant lock-ups and crashes.

  • danielchent1's avatar
    danielchent1
    Copper Contributor

    after testing the new web browser control, unfortunately at this point in time it is useless.

    reasons

    1. no DOM manipulation or even loop through the DOM read only , this means we cannot get any data from the current document to the user. the javascript is buggy and very limited.

    2. the "Trusted Domains" issue.

    this make this browser a web page viewer - not a real browser, case in point, i open google search and have a list of sites.

    instead of open the clicked site in the control, it sends the link to the user default browser therefore, the idea of a web browser inside access is dead.

    3. navigation to new URL  always goes to the user default browser - same result as 2 above.

    4. very limited VBA automation and very buggy.

    5. lost the ability to open HTML stream directly unless save the stream to a file then open it.

     

    Bottomline - this is not an enterprise ready product / component.

    why would someone use this component?!.

    *** at this point in time we are stuck from one end, with an old control that is no longer functional for many modern sites.

    and from the other end a non functional new control.

     

  • bdineen's avatar
    bdineen
    Copper Contributor

    I'm able to use the new Edge browser via my Office 365 install but I have a client running Access on a remote desktop (Server 2019) via MS-Office Professional Plus 2019 and it doesn't work correctly.  I see a browser icon in the tool box under form design and when I place a browser on my form I get the new properties such as setting the URL via the Control Source, however when I open a web page I get script errors and I also don't see the new VBA methods such as ExecuteJavascript.  So from what I can tell its still running IE.  Does anyone have any insight into this issue?

     

     

  • UmairKhan01's avatar
    UmairKhan01
    Copper Contributor

    Nice!

    Umair Khan

    Senior Access Developer

    nine one six two eight four three two four one

     

  • MatrixDev's avatar
    MatrixDev
    Copper Contributor

    Great Job. 

    The last and most critical functionality is to get the VBA team to make the control fully accessible.