Results 1 to 8 of 8
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    google maps script error and control problem

    Google Maps Angies.zip
    I have a Script Problem when I click on the Google Map button, also I would like to have control over the map so that I could reposition or zoom in or out. Thanks everyone. Angie
    I have attached a sample of my program the basic when you open it will go to the schedule and if you click show all calls and than the google map button it will open another form which you will click on google map and then you will see the script error and see the addressed plotted but can not zoom in or out no map control.
    Last edited by June7; 08-12-2014 at 02:33 PM.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Can you post some of the code and indicate the line of code that is throwing the error?

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    Script error
    line 780
    char 172
    error invalid character error
    code o
    url. Http://maps.google.com/mapfiles/home3.html

    is this what you wanted.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    What I am asking is for you to do the legwork and post the VBA that you believe is causing the issue.

  5. #5
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    Private Sub GoogleMaps_Click()
    DoCmd.Hourglass (True)
    MyGoogleMapURL = "http://maps.google.com/maps?q=from: "

    MyGoogleMapURL = MyGoogleMapURL & Me.[ClientPickupList].Column(0, Goog1)
    For Goog1 = 1 To Me.[ClientPickupList].ListCount - 1
    MyGoogleMapURL = MyGoogleMapURL & " to: " & Me.[ClientPickupList].Column(0, Goog1)
    Next
    MyGoogleMapURL = MyGoogleMapURL & "&iwloc=A&hl=en"
    DoCmd.OpenForm "frmGoogleMap", acNormal
    Forms![frmGoogleMap].wbbWebsite.Navigate URL:=MyGoogleMapURL
    'http://maps.google.com/maps?q=from:++LS20+8AS+to:+LS20+8AS++&hl=en&ie=
    'UTF8&ll=53.87023,-1.713985&spn=0.003688,0.011319&z=17&pw=2
    DoCmd.Hourglass (False)
    End Sub

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    And which line in the posted code is 780? And which character is 172?

    However, I did download your db and test the code. The Google Map window opens and I am able to move it and zoom. It says
    We could not find from: 5933 CASTLE DR MILTON FL 32570 to: 5907 ...

    I also got message:
    It looks like you have enabled Internet Explorer Compatbility View. Google Maps will not work correctly unless this is turned off.

    Then I Exit the window and try again. The window looks different and now cannot zoom. Reopening db does not get me the original behavior.

    Weird.

    Also getting error when mouse over the up/down arrow buttons.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    Hi June7, I don't know. If you open the zip file I attached you can try and see what I am trying to say. When you click on google maps it will open the map but gives error you can click yes it goes away and the map is there with the locations I can't figure out what is causing it. I would use bing maps but could not get it to work only wanted to route from one address to the second would not let me see all locations. I don't need driving directions just locations with tags.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I did open and try. That's what my previous post was about.
    I edited my previous post with more comments.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Google Maps in webbrowser control
    By bfc in forum Forms
    Replies: 10
    Last Post: 08-27-2014, 10:53 PM
  2. Replies: 3
    Last Post: 07-29-2014, 12:11 AM
  3. Google maps from form
    By JeroenMioch in forum Programming
    Replies: 11
    Last Post: 03-04-2014, 10:53 AM
  4. using google maps address into a text field
    By thanosgr in forum Programming
    Replies: 5
    Last Post: 04-26-2012, 03:39 PM
  5. Replies: 5
    Last Post: 10-13-2011, 03:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums