D
DS
Anyone know how to bring up a Map in Access from Mapquest based on an
address field in Access?
Thanks
DS
address field in Access?
Thanks
DS
Anyone know how to bring up a Map in Access from Mapquest based on an
address field in Access?
WOW! This is good stuff, Its sure to keep me busy! When I'm done withJeff said:in message:
Here are a couple of past post on the subject from MVP Doug Steele and
angelic MVP Cheryl Fisher. Hopefully this will help:
I'd create a string that represents the URL:
Dim strLookup As String
Dim strURL As String
If Len(Me.City) > 0 Then
If Len(strLookup) > 0 Then
strLookup = strLookup & "&"
End If
stLookup = strLookup & "city=" & Replace(Me.City, " ", "+")
End If
If Len(Me.State) > 0 Then
If Len(strLookup) > 0 Then
strLookup = strLookup & "&"
End If
stLookup = strLookup & "state=" & Replace(Me.State, " ", "+")
End If
If Len(Me.Address) > 0 Then
If Len(strLookup) > 0 Then
strLookup = strLookup & "&"
End If
stLookup = strLookup & "address=" & Replace(Me.Address, " ", "+")
End If
and so on until you've looked at each field of interest.
strURL = http://www.mapquest.com/maps/map.adp
If Len(strLookup) > 0 Then
strURL = strURL & "?" & strLookup
End If
I'd then copy the code from http://www.mvps.org/access/api/api0018.htm at
"The Access Web", and call it like:
strReturn = Call fHandleFile(strURL, WIN_NORMAL)
WOW! This is good stuff, Its sure to keep me busy! When I'm done with
what I'm writing now I'll get to work on it. I'll let you know how it
works out. Once again, Thank You!