I have a command button to run a program by using this code:
Private Sub cmdASI_Click()
On Error GoTo Err_cmdASI_Click
Dim stAppName As String
stAppName = "C:\AccuCare\Ac550.exe"
Call Shell(stAppName, 1)
Exit_cmdASI_Click:
Exit Sub
Err_cmdASI_Click:
MsgBox Err.Description
Resume Exit_cmdASI_Click
End Sub
The problem is, the program needs to "Start In" its folder so it can access other files. Is there any code to tell the Command button to start the program in the "C:\AccuCare" directory??
Private Sub cmdASI_Click()
On Error GoTo Err_cmdASI_Click
Dim stAppName As String
stAppName = "C:\AccuCare\Ac550.exe"
Call Shell(stAppName, 1)
Exit_cmdASI_Click:
Exit Sub
Err_cmdASI_Click:
MsgBox Err.Description
Resume Exit_cmdASI_Click
End Sub
The problem is, the program needs to "Start In" its folder so it can access other files. Is there any code to tell the Command button to start the program in the "C:\AccuCare" directory??