Microsoft Access 2010 Web Browser Control displaying driving directions with Google Maps not working

I'm having an issue with trying to display driving directions in my application using the Microsoft Browser Control. I will attach the message I'm getting about compatibility issue.  When I first created this application it worked properly and then after one of Microsoft's updates it now fails.Google-Maps-Driving-directions-issue.png
pabrannPresidentAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
<<I'm getting about compatibility issue.  When I first created this application it worked properly and then after one of Microsoft's updates it now fails.>>

 More like the user changed something.

Despite that it's in your app, the browser control is still honoring the Internet settings on the machine.

So if your user turned on compatibility for something else, it will effect your app as well.

In control panel, Internet options, if "Include updated website lists from Microsoft" is checked under compatibility settings, a wide swath of web sites can all of a sudden have problems as well as "Display all websites in Compatibility View".

Not much you can do about it other than instruct the user to apply the proper settings.

Jim.
pabrannPresidentAuthor Commented:
Hi Jim,

Thanks for the info. I opened my Internet explorer and unchecked both boxes referencing compatibility and I'm still getting the same error.
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Did you re-start the form/app?

Jim.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

pabrannPresidentAuthor Commented:
I restarted my computer, opened up the application and same issue. It does the same thing on my client's systems. Is there another browser control made for google chrome?
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
You must be missing a setting some where.

What version of the control are you using (check tools/references)?

and no, as far as I know, there are no other browser controls available now.

Jim.
Jeffrey CoachmanMIS LiasonCommented:
Is it a hard requirement to use the web browser control?

For me, it is much easier to just navigate to/open a browser window, and view the driving route there.
Using this method I have never had a problem.
Remember, ...most people always have a browser already open anyway....

Since I started doing this, MS has changed the way you need to build the navigation string, ...but I have never had an error...
So perhaps this is the case with you...
Can you post the code you are using?

This string woks fine for me when opening up a browser window:
https://www.google.com/maps/dir/80-03+Queens+Blvd,+Elmhurst,+NY+11373/111+Bridge+St,+Brooklyn,+NY+11201/
...but fails when I try to us it in a WebBrowser control (with IE and Firefox):
error
FWIW, I am using Win 7, firefox, Off 2010
So perhaps Google maps driving directions has issues working in with this control now? (or until MS addresses this issue)

As cool as the webbrowser control was when it was first introduced, ...the amount of "control" you have over it has always been limited.
I now only use it only to display the simplest of web pages.
The only real use I have for it now is to display PDF's on a form.

Perhaps, as Jim states, it is just a setting the needs to be changed,
...but what about when it happens again?
Again, ...jut my 2c, ...but using a browser window, I have never had an issue...

JeffCoachman

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
With IE11, I get the message Jeff gets when compatibility mode is turned on.   If I turn it off, it works as it should.

Jim.
pabrannPresidentAuthor Commented:
The combination of suggestions solved my problem. Many thanks to both of you.  Using the browser window vs. browser control was the best solution.
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Good to hear.

For what it's worth, I have an app right now where I am facing the same problems.  

In this app, I allow a user to pick a point on a map so I can get the latitude and longitude of a location.

It works, but not well and I was considering putting up a separate browser window.  But I'm still faced with the same issues as you either way (compatibility turned on, off, etc).

What would really be great is a control that gave you complete control of the web browser instance, but in today's world with all the security considerations, I doubt that will happen :(

Jim.
Jeffrey CoachmanMIS LiasonCommented:
I actually feel that Jim's post should be designated as the "Accepted" solution, ...
Since he first suggested a "configuration issue"
(which was ultimately the issue)

This would make this thread mover valuable as a PAQ.
(to pull up the actual "solution" first.

My post was just an alternate approach...

JeffCoachman
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.