sonaljain123
Registered User.
- Local time
- Today, 03:00
- Joined
- Jul 6, 2011
- Messages
- 68
Hi,
I have a main form like a main menu for the database as a form and I am trying to add a button in the same which can launch a pdf file stored at a location on my desktop.
Firstly is it possible to do this in MS Access?
Secondly, if yes, below is the code I am trying to work with, please let me know how I can modify the same to open this using a button:
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stAppName As String
stAppName = "K:\CLE03\M\UsersGuide.pdf"
Call Shell(stAppName, 1)
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub
Thanks!
I have a main form like a main menu for the database as a form and I am trying to add a button in the same which can launch a pdf file stored at a location on my desktop.
Firstly is it possible to do this in MS Access?
Secondly, if yes, below is the code I am trying to work with, please let me know how I can modify the same to open this using a button:
Private Sub Command20_Click()
On Error GoTo Err_Command20_Click
Dim stAppName As String
stAppName = "K:\CLE03\M\UsersGuide.pdf"
Call Shell(stAppName, 1)
Exit_Command20_Click:
Exit Sub
Err_Command20_Click:
MsgBox Err.Description
Resume Exit_Command20_Click
End Sub
Thanks!