A
Alan
Hope some one can help
I have a command button on a form with the following code on it
Private Sub Command81_Click()
On Error GoTo Err_Command81_Click
Dim stAppName As String
stAppName = "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe
d:\01.pdf"
Call Shell(stAppName, 1)
Exit_Command81_Click:
Exit Sub
Err_Command81_Click:
MsgBox Err.Description
Resume Exit_Command81_Click
End Sub
What I would like it to do is to get the path and file name from a text
field on the same form as the command button. How do I insert a reference
to this text field after the Acrobat.exe so it opens the file when it loads.
Have tried various options putting the text field name in brackets i.e.
[PathToFile] after the Acrobat.exe but it cannot find the file. Any help
or pointers would be great. Or is there a better way to open a Acrobat PDF
file from a command button in Access.
I have a command button on a form with the following code on it
Private Sub Command81_Click()
On Error GoTo Err_Command81_Click
Dim stAppName As String
stAppName = "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Acrobat.exe
d:\01.pdf"
Call Shell(stAppName, 1)
Exit_Command81_Click:
Exit Sub
Err_Command81_Click:
MsgBox Err.Description
Resume Exit_Command81_Click
End Sub
What I would like it to do is to get the path and file name from a text
field on the same form as the command button. How do I insert a reference
to this text field after the Acrobat.exe so it opens the file when it loads.
Have tried various options putting the text field name in brackets i.e.
[PathToFile] after the Acrobat.exe but it cannot find the file. Any help
or pointers would be great. Or is there a better way to open a Acrobat PDF
file from a command button in Access.