Hello
can someone help me?
I would like to implement a form in Access (using VBA) with 3 textbox
containg street and city

I have prepared

- the form and I added a window in Internet Explorer browser through
an ActiveX control.
- 3 Textbox

Then I put the function in Javascript on a web page. I loaded the page
from the window on the form and I did pass the values ​​entered in the
Textbox using VBA code

example
Me.WebBrowser.Document.parentWindow.execScript (calcRoute () "," ","
JavaScript ")

i wrote function calcRoute loaded into the web page in this way

calcRoute function (value1, value2, value3) {
    var start = value1;
    var waypts = value2;
    var end = value3;

    waypts.push ({location: value2, stopover: true});

    var request = {
        origin: start,
        destination: end
        waypoints: waypts,
        travelMode: google.maps.DirectionsTravelMode.DRIVING
    };
    directionsService.route (request, function (response, status) {
      if (status == google.maps.DirectionsStatus.OK) {
        directionsDisplay.setDirections (response);
var route = response.routes [0];
      }
    });

I made three arguments in function to pass the 3 values in the
textboxes from ACCESS VBA to javascript in this way:

Me.WebBrowser.Document.parentWindow.execScript (calcRoute ("" "&
ADDRESS1 &" "" "" "& ADDRESS2 &" "" "" "& & ADDRESS3 """)"," ","
JavaScript ")

With only two arguments (no waypoints) function does the path but I
would do it with three
If I turn in VBA tells me the message (think JavaScript error):

Does not support this property or method
as if It do not support the feature calcRoute made with 3 arguments,
but only two
Any solution??

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to