How to fix Google maps display issues in Access web browser control (1 Viewer)

isladogs

MVP / VIP
Local time
Today, 11:12
Joined
Jan 14, 2017
Messages
18,186
A few months ago, I experienced issues displaying Google maps in an Access web browser control,

The issue was that the map loads perfectly for a second or so followed by a pop up window advising you to switch off compatibility mode.
When this is dismissed, all of the map except the outer edge disappears!

Online searches revealed that this has been a problem for many users for at least 5 years which for some reason Google & Microsoft haven't fixed.

The problem is that by default the Access web browser control is designed for IE7 which of course is out of date and no longer supported.
NOTE: It still uses IE rather than Edge...

Anyway, I found a solution involving changes to the registry which worked perfectly ...
...until this week when I had to reinstall Windows on a new hard drive.
The problem returned immediately.

Today, I tried various suggested fixes as follows before finding the registry fix once again.
I'm posting all the methods I tried as others may not need the registry fix.

1. Turn off Compatibility view
Taken from https://support.google.com/maps/answer/3118069?hl=en
Open Internet Explorer.
In the top right, click Tools. (If you don't see the icon, press the F10 key to see it.)
Click Compatibility View Settings.
Under “Websites you’ve added to Compatibility View," select google.com.
Click Remove.



As I didn't have Google listed, this clearly was no use - at least for me

2. Remove all google sites from [Trusted sites] in [Security] tab of [Internet Options]
https://productforums.google.com/forum/#!msg/maps/FCCkHRK43Oo/-I57Kw21_UUJ



Once again N/A for me

3. Use software rendering instead of GPU rendering in IE
https://support.microsoft.com/en-us...sable-software-rendering-in-internet-explorer



Again, didn't help me - in fact it made the issue worse.

4. Update the registry so Access uses IE11 (or whichever version of IE you have on your machine)
https://stackoverflow.com/questions/28639136/access-webbrowser-control-and-google-maps

This involves adding (or editing) the registry to make your version of IE (probably IE11) the default.
As always, the standard warning about any changes to the registry are done at your own risk

It involves 2 new keys being added to the HKEY_CURRENT_USER hive (for just you) or if preferred to HKEY_LOCAL_MACHINE (all users)
This works perfectly - at least for me ....

Open the registry then find the key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
Right click and select New ... DWord Value ...
Enter MsAccess.exe then right click .. Modify .. Decimal and enter 11001



A quicker way is to use the attached reg file.
Unzip .. right click and select Merge
It will add the following 4 keys ... though you don't really need HKCU if you add HKLM

Code:
==========================================================
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl]

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"MSAccess.exe"=dword:00002af9

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_DOCUMENT_COMPATIBLE_MODE]
"MsAccess.exe"=dword:00002af9


[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl]

[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION]
"MSAccess.exe"=dword:00002af9

[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_DOCUMENT_COMPATIBLE_MODE]
"MsAccess.exe"=dword:00002af9

===========================================================

NOTE:
This can be adapted for any other program instead of MSAccess.exe or for version of IE. Here is a list of the values that you might want to use:

12001 - Edge emulation mode
11001 - IE11 Standards mode
11000 - IE11 Default Mode
10001 - IE10 Standards Mode
10000 - IE10 Default Mode
9999 - IE9 Standards Mode
9000 - IE9 Default Mode
8888 - IE8 Standards Mode
8000 - IE8 Default Mode
7000 - IE7

Hope this is of use to others and, even if not, I know where to find the solution for my own future reference!
 

Attachments

  • GoogleMapsRegFix.zip
    463 bytes · Views: 713
  • RegFix.PNG
    RegFix.PNG
    55.7 KB · Views: 2,896
  • TrustedSites.jpg
    TrustedSites.jpg
    61.4 KB · Views: 2,867
  • SoftwareRendering.PNG
    SoftwareRendering.PNG
    24.7 KB · Views: 2,838
  • CompatabilityView.PNG
    CompatabilityView.PNG
    13 KB · Views: 2,932
Last edited:

Minty

AWF VIP
Local time
Today, 11:12
Joined
Jul 26, 2013
Messages
10,355
I had a similar issue - very frustrating.
Good write up Colin.
 

isladogs

MVP / VIP
Local time
Today, 11:12
Joined
Jan 14, 2017
Messages
18,186
I partly did it for me ... for the next time my hard drive fails!

The irony is I had written a shorter version for my own purposes a few months back but saved it on the drive which failed!

I must start saving stuff to the cloud on a regular basis!
 

Mark_

Longboard on the internet
Local time
Today, 04:12
Joined
Sep 12, 2017
Messages
2,111
Colin,
don't save to the cloud, save to this forum! That way we can all benefit from your time and effort!
 

drb555

Registered User.
Local time
Today, 13:12
Joined
Jul 10, 2013
Messages
19
I sure this used to work but now
IE has been retired totally it does not seem to work.
1681399005805.png


anyone found any other work arounds
 

isladogs

MVP / VIP
Local time
Today, 11:12
Joined
Jan 14, 2017
Messages
18,186
The IE browser control is still and will continue to be available until 2029.

It does still work with Google Maps provided that you aren't trying to use the Google Maps Javascript API.

For example:

1681400130568.png


However, the new Edge web browser control is now available to all those using Microsoft 365 Insider Channels and will probably be released to the Current Channel later this month. That does work with the Javascript API.

See Microsoft Access: Edge Browser Control is finally here :) | Page 3 | Access World Forums (access-programmers.co.uk)
 

Users who are viewing this thread

Top Bottom