Map Pin into Access Form

Added the ADO 6.1 reference ---no change?????
 

Attachments

  • withADO6.1.jpg
    withADO6.1.jpg
    90.7 KB · Views: 131
iexplorer.exe should also be added to exception (value = 0).
 
iexplorer or iexplore???

iexplore is there but value is 1
see the lockdown jpg in post 19.
 
Sorry I haven't replied to this. I got caught in the snowstorm here on the east coast. I still get the onion.js error pretty consistently, no matter what I try (including the most recent registry change). I'll let you all know if I figure it out. I think it has more to do with the version of the API we're loading. Right now they are up to something like 3.23 and this is calling version 2.x. I think that is what is causing the problem but it is not as simple as changing the script over to 3.x, it fails when you open the form. I'm going to try and understand the code and how it all fits together.

thanks!
 
I've resigned to the fact that I simply need to rewrite the html file. After I finish it off and think that it works, I'll upload everything so that it will hopefully work for you all.

Thanks!
 
So I tried to rewrite the HTML file and specifically call out the versions that I want to call out of the google API. Unfortunately, no matter what I do, I seem to still get that damn onion.js error. It seems to always happen once I add a listener to the push pin. If I just drop a pin on a map and don't have a listener, it seems to be okay. I'm going to throw in the towel on the google maps integration and see if I can't figure out a bing maps integration instead.
 
with regards to script error on the webbrowser control, you can set it to Not display, using

Me.webbrowserControl.Object.Silent = True

on each form's load event, just add one line.

Private Sub Form_Load()
' dont display script error - arnelgp
Me.WebBrowser6.Object.Silent = True
...
...

substitute the correct webbrowser control name to the blue-colored text.
 
The problem with that is that as soon as you would've gotten that error and the silent property is set to true, the map becomes essentially useless. You can't scroll on it or zoom or add markers, etc.
 

Users who are viewing this thread

Back
Top Bottom