J
Jaz
Sorry, I posted this in a different group because it forgot to cross post:
I'm trying to create a button that will open a file in access 2000.
The location of the file is D:\Test\label.xff.
If I run this in the command prompt, it opens the file with no problems.
If I create an event on a button to open the file I get an error. The VB
code is this:
Private Sub RunForms_Click()
Dim RetVal
RetVal = Shell("D:\Test\label.xff", 1)
End Sub
Why won't this work if it works in the command prompt?
Thanks,
Jasper
I'm trying to create a button that will open a file in access 2000.
The location of the file is D:\Test\label.xff.
If I run this in the command prompt, it opens the file with no problems.
If I create an event on a button to open the file I get an error. The VB
code is this:
Private Sub RunForms_Click()
Dim RetVal
RetVal = Shell("D:\Test\label.xff", 1)
End Sub
Why won't this work if it works in the command prompt?
Thanks,
Jasper