Open PDF File from a button

S

Shelley

THANK YOU !!!!!!!!!
-----Original Message-----
Copy and paste code from this page into a new module:

http://www.mvps.org/access/api/api0018.htm

Create a button on a form but do not use the wizard,
cancel it. Use the Code Builder to create a click event
for the button and call the pdf file:

Private Command1_Click Sub
fHandleFile("C:\myfile.pdf")
'fHandleFile(Forms!Form1!Text1)
'fHandleFile(Table1![Field1])
End Sub

this function will call any type of file using the Windows
registry to determine what app to launch.

Hope this is what you were looking for.


-----Original Message-----
Can anyone please tell me how to do this?
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top