Bonjour à tous,
J'ai enregistré dans une table paramètres le path servant de modèle de la page de recherche de google maps que mon code est sensé récupérer avec Dlookup pour alimenter la variable strURL, or après un Debug.print les valeurs des variables strStartingPoint et strDestination contenues dans le dit path enregistré ne "remontent pas" dans la chaîne qui suit ...
(https://maps.google.com/maps?f=d&hl=fr&saddr="& strStartingPoint &"&daddr="& strDestination &"&ie=UTF8&z=5&om=1)
Que fais-je mal ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Option Compare Database
Option Explicit
Public strURL As String
Public Function RechGoogleMaps(strStartingPoint As String, strDestination As String)
Dim strURL As String
Dim ie As Object
strStartingPoint = Replace(strStartingPoint, " ", "+")
strDestination = Replace(strDestination, " ", "+")
strURL = DLookup("pathgooglemaps", "paramètres")
Debug.Print strURL
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate strURL
ie.Visible = True
End Function |
Merci beaucoup d'avance
Partager