Okay, here's a fun Access question:
I'm trying to create a command button in my database that will take the donor address information from the current form and send it through the Internet to MapQuest to get a map and driving directions to the donor's business. However, I keep getting a "Compile Error: Object Required" message. I can't seem to figure out where I'm going wrong with this.
Any help would be appreciated. Thanks.
[VBA]Private Sub Mapper_Click()
On Error GoTo Err_Mapper_Click
Dim strAddress As String
Set strAddress = "http://www.mapquest.com/maps/map.adp?city=" & _
Str(Me![DonorCity]) & "%%26state=" & Str(Me![DonorState]) & _
"%%26address=" & Str(Me![DonorAddress1]) & "%%26zip=" & _
Str(Me![DonorZip]) & "%%26country=us%%26zoom=5"
Application.FollowHyperlink strAddress, , True
Exit_Mapper_Click:
Exit Sub
Err_Mapper_Click:
MsgBox Err & ": " & Err.Description
Resume Exit_Mapper_Click
End Sub[/VBA]