How to open PDF using command button?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I remembered once how to do this, but I can't recall now...
I'd like to enable user to click on a command button to open up a PDF file
inserted in the Bound Object field. But I'm unsure what to put in the command
button's OnClick event. Could someone please help?

Regards,
Sam (NZ)
 
One way to open a PDF document with a command button is to place its address
in the Hyperlink property for the button. (You can change the format of the
button afterwards, removing underline, change font color, etc.)

Marvin
 
Thanks Marvin. But I suppose that would only allow me to open ONE particular
PDF document with the button?

i.e. Say if I put this MyPdf document's address in the Hyperlink property of
a command button, which looks something like this "c:\my pdf
folder\MyPdf.pdf". It's only the Mypdf.pdf that would be opened when the
button is clicked.

But what I intend to acheive is to have a PDF field in a continuous subform
(i.e. for every record there's a button next to it) and when the button next
to the record is clicked, the PDF document in that record would be opened.

Is this possible?

Regards,
Sam
 
Back
Top