hyperlinks

A

Anne

I created a hyperlink in my database that was working very well. It open
Mapquest to the postal code displayed on an open record. It stopped working
and I suspect Mapquest changed something about there format of the postal
code that is not compactible with my format. This is the code in my
hyperlink.


Private Sub cmdHyperlink_Click()
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


I have also tried one for Google Maps and - it opens Google Maps fine but
does not open to the postal code in my record. This is the code that I tried.

Private Sub cmdHyperlinkGoogleMap_Click()
Dim strPath As String
If Not IsNull(Me.PostalCode) Then
strPath = "http://maps.google.ca/maps?hl=en&tab=wl" & Me.PostalCode & "/"
Me.cmdHyperlink.HyperlinkAddress = strPath
End If
End Sub


Any suggestions?
 
D

Douglas J. Steele

What's the content of strPath? Does it work if you paste that into your
internet browser?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top