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.Va lue
any help is appreciated
--------------------------------------------------------------------------------------------------------------------------
Private Sub VNC_Viewer_Clic k()
On Error GoTo Err_VNC_Viewer_ Click
Dim stAppName As String
stAppName = "C:\Program Files\RealVNC\V NC4\vncviewer.e xe"
Call Shell(stAppName , 1)
Exit_VNC_Viewer _Click:
Exit Sub
Err_VNC_Viewer_ Click:
MsgBox Err.Description
Resume Exit_VNC_Viewer _Click
End Sub
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.Va lue
any help is appreciated
--------------------------------------------------------------------------------------------------------------------------
Private Sub VNC_Viewer_Clic k()
On Error GoTo Err_VNC_Viewer_ Click
Dim stAppName As String
stAppName = "C:\Program Files\RealVNC\V NC4\vncviewer.e xe"
Call Shell(stAppName , 1)
Exit_VNC_Viewer _Click:
Exit Sub
Err_VNC_Viewer_ Click:
MsgBox Err.Description
Resume Exit_VNC_Viewer _Click
End Sub
Comment