Hi,
I've look around and haven't found the answer I'm looking for. I'm trying to just open Google Maps in IE with a button in Access. I'm making some silly error that I can't seem to figure out. Just need a second set of eyes to maybe tell me what I'm doing wrong.
I'm obviously going to change the string so that the lat/long values are pulled from the form. It will eventually look like:
But I'm getting a warning saying:
"The path 'en' does not exist or is not a directory."
This happens when I click the button to execute this code.
Any thoughts?
Thanks,
Shawn
I've look around and haven't found the answer I'm looking for. I'm trying to just open Google Maps in IE with a button in Access. I'm making some silly error that I can't seem to figure out. Just need a second set of eyes to maybe tell me what I'm doing wrong.
Code:
Private Sub google_Click()
vUrl = "[URL unfurl="true"]http://maps.google.com/maps?q="[/URL]
vUrl = vUrl & "42.5393+90.6453&t=k&iwloc=A&hl=en"
Call Shell("explorer.exe " & vUrl, vbMaximizedFocus)
End Sub
I'm obviously going to change the string so that the lat/long values are pulled from the form. It will eventually look like:
Code:
vUrl = "[URL unfurl="true"]http://maps.google.com/maps?q="[/URL]
vUrl = vUrl & me.lat.value & "+" & me.long.value & ""
vUrl = vUrl & "&t=k&iwloc=A&hl=en"
But I'm getting a warning saying:
"The path 'en' does not exist or is not a directory."
This happens when I click the button to execute this code.
Any thoughts?
Thanks,
Shawn