0
我在此目录中有此程序(“C:\ Program Files \ CQCS \ 7.22-8B_client \ cqwr.exe” )使用命令按钮打开程序(cqwr.exe),MS Access错误“无效的过程调用或参数”
我创建了MS Access中的命令按钮来打开这个程序,这是我的代码
Private Sub Command79_Click()
On Error GoTo Err_Command79_Click
Dim stAppName As String
stAppName = "C:\Program Files\CQCS\7.22-8B_client\cqwr.exe"
Call Shell(stAppName, 1)
Exit_Command79_Click:
Exit Sub
Err_Command79_Click:
MsgBox Err.Description
Resume Exit_Command79_Click
End Sub
当我按一下按钮,我得到这个错误“无效的过程调用或参数”
有谁知道什么是错的?
谢谢
适用于我(与我的电脑上的程序)。运行菜单Debug/Compile,其他地方是否有编译错误? – Andre
您可以向我发送您使用的示例路径链接吗?我在想我的问题可能是路径。 –
'stAppName =“C:\ Program Files \ Microsoft Games \ Minesweeper \ MineSweeper.exe”:D: – Andre