I have the following event proceedure on a command button - which works
great, however, i would like to add the value of another field onto the
end.
e.g i have a field with the computer name in, and i would like the
program to execute with the computer name on the end of the command,
but not sure how to go about this....
something like:
stAppName = "C:\Program Files\Real\VNC4\vncviewer.exe"
computername.Value
any help is appreciated
--------------------------------------------------------------------------------------------------------------------------
Private Sub VNC_Viewer_Click()
On Error GoTo Err_VNC_Viewer_Click
Dim stAppName As String
stAppName = "C:\Program Files\RealVNC\VNC4\vncviewer.exe"
Call Shell(stAppName, 1)
Exit_VNC_Viewer_Click:
Exit Sub
Err_VNC_Viewer_Click:
MsgBox Err.Description
Resume Exit_VNC_Viewer_Click
End Sub