A
Anne
Thanks to a previous post I have added a command button to my form which
opens a map in mapquest with reference to the postal code on my current
record. It works fine on the first search but each subsequent search on a
different record opens the original map. If I close the form, open it and
try again the first search is correct, but each subsequent search on a new
record opens the original map.
Here is my code.
Private Sub cmdHyperlink_DblClick(Cancel As Integer)
Dim strPath As String
If Not IsNull(Me.PostalCode) Then
strPath = "http://www.mapquest.com/maps/" & Me.PostalCode & "/"
Me.cmdHyperlink.HyperlinkAddress = strPath
End If
End Sub
opens a map in mapquest with reference to the postal code on my current
record. It works fine on the first search but each subsequent search on a
different record opens the original map. If I close the form, open it and
try again the first search is correct, but each subsequent search on a new
record opens the original map.
Here is my code.
Private Sub cmdHyperlink_DblClick(Cancel As Integer)
Dim strPath As String
If Not IsNull(Me.PostalCode) Then
strPath = "http://www.mapquest.com/maps/" & Me.PostalCode & "/"
Me.cmdHyperlink.HyperlinkAddress = strPath
End If
End Sub