E
efandango
I have a form control button that when pressed, parses the following seperate
address controls into a googlemaps browser box. At the moment the code
references the open form address controls; I now want to be able to reference
the controls via an underlying query. Can someone help me with the syntax
required to insert the query name into the button code?
My Exisitng Code:
Private Sub Create_RunRoute_Button_Click()
On Error GoTo Err_RunRoute_Button_Click
Dim stAppName As String
stAppName = "C:\Program Files\Internet Explorer\iexplore.exe
http://maps.google.co.uk/maps?f=q&hl=en&q=" & "from: " & Me.RunWaypoint_1 +
", London" & (" to: " + Me.RunWaypoint_2 + ", London") & (" to: " +
Me.RunWaypoint_3 + ", London")
Call Shell(stAppName, 1)
Exit_RunRoute_Button_Click:
Exit Sub
Err_RunRoute_Button_Click:
MsgBox Err.Description
Resume Exit_RunRoute_Button_Click
End Sub
Instead of on the form, via the Me. reference, I now want the code to find
the controls in the following query name:
'Google_Runmaker_Query'
So it would logically be like this: (which doesn't work syntax-wise)
stAppName = "C:\Program Files\Internet Explorer\iexplore.exe
http://maps.google.co.uk/maps?f=q&hl=en&q= Google_Runmaker_Query
" & "from: " & Me.RunWaypoint_1 + ", London" & (" to: " + Me.RunWaypoint_2 +
", London") & (" to: " + Me.RunWaypoint_3 + ", London")
address controls into a googlemaps browser box. At the moment the code
references the open form address controls; I now want to be able to reference
the controls via an underlying query. Can someone help me with the syntax
required to insert the query name into the button code?
My Exisitng Code:
Private Sub Create_RunRoute_Button_Click()
On Error GoTo Err_RunRoute_Button_Click
Dim stAppName As String
stAppName = "C:\Program Files\Internet Explorer\iexplore.exe
http://maps.google.co.uk/maps?f=q&hl=en&q=" & "from: " & Me.RunWaypoint_1 +
", London" & (" to: " + Me.RunWaypoint_2 + ", London") & (" to: " +
Me.RunWaypoint_3 + ", London")
Call Shell(stAppName, 1)
Exit_RunRoute_Button_Click:
Exit Sub
Err_RunRoute_Button_Click:
MsgBox Err.Description
Resume Exit_RunRoute_Button_Click
End Sub
Instead of on the form, via the Me. reference, I now want the code to find
the controls in the following query name:
'Google_Runmaker_Query'
So it would logically be like this: (which doesn't work syntax-wise)
stAppName = "C:\Program Files\Internet Explorer\iexplore.exe
http://maps.google.co.uk/maps?f=q&hl=en&q= Google_Runmaker_Query
" & "from: " & Me.RunWaypoint_1 + ", London" & (" to: " + Me.RunWaypoint_2 +
", London") & (" to: " + Me.RunWaypoint_3 + ", London")