G
Guest
Why can't i run application from VB or from Command button? None of these
attempts are working:
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click
Dim stAppName As String
stAppName = "I:\Corporate\Credit\LOTUS\COLLECTI\ACCESS\ddrcath.mdb"
Call Shell(stAppName, 1)
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
End Sub
or another one:
Private Sub runCA_Click()
Dim FilePath As String
FilePath = "I:\Corporate\Credit\LOTUS\COLLECTI\ACCESS\ddrcath.mdb"
Application.FollowHyperlink FilePath
End Sub
Please, can somebody help? Thank you.
attempts are working:
Private Sub Command5_Click()
On Error GoTo Err_Command5_Click
Dim stAppName As String
stAppName = "I:\Corporate\Credit\LOTUS\COLLECTI\ACCESS\ddrcath.mdb"
Call Shell(stAppName, 1)
Exit_Command5_Click:
Exit Sub
Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click
End Sub
or another one:
Private Sub runCA_Click()
Dim FilePath As String
FilePath = "I:\Corporate\Credit\LOTUS\COLLECTI\ACCESS\ddrcath.mdb"
Application.FollowHyperlink FilePath
End Sub
Please, can somebody help? Thank you.