Good evening
Hello friends
I have a problem
I did a project in access, in my project I have to open an EXE file,
I tried with many ways to open this file:
1.
stAppName = "C:\Program Files\BCCLTD\Msv.exe"
Call Shell(stAppName, 1)
2.
Function TLink(ByVal URL As String) As Long
TLink = ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus)
End Function
3.
Function OpenFile(sFileName As String)
OpenFile = ShellExecute(Application.hWndAccessApp, "Open", sFileName, "", "C:\", 1)
End Function
And all the time I get an error, that missing some parameters.
<Attach the error> - Sorry it’s in Hebrew
The point is that if I go to the folder and open the file and the file open…
Is there a way to open the file from the mother’s folder?
SORRY, but I attached another file, in the properties of a shortcuts here you can see that you can write “START IN” and it open from the folder.
Is there a way to do like this in access?
I hope that u understand me!
Thanks a lot
Sharon
Hello friends
I have a problem
I did a project in access, in my project I have to open an EXE file,
I tried with many ways to open this file:
1.
stAppName = "C:\Program Files\BCCLTD\Msv.exe"
Call Shell(stAppName, 1)
2.
Function TLink(ByVal URL As String) As Long
TLink = ShellExecute(0&, vbNullString, URL, vbNullString, vbNullString, vbNormalFocus)
End Function
3.
Function OpenFile(sFileName As String)
OpenFile = ShellExecute(Application.hWndAccessApp, "Open", sFileName, "", "C:\", 1)
End Function
And all the time I get an error, that missing some parameters.
<Attach the error> - Sorry it’s in Hebrew
The point is that if I go to the folder and open the file and the file open…
Is there a way to open the file from the mother’s folder?
SORRY, but I attached another file, in the properties of a shortcuts here you can see that you can write “START IN” and it open from the folder.
Is there a way to do like this in access?
I hope that u understand me!
Thanks a lot
Sharon