P
PayeDoc
Hello All
I have a button on a form that I want to use to open a particular pdf file.
I had tried doing this with a macro, using the RunApp command, but can't get
it to work (see my post in the macros newsgroup), and in any case I wondered
whether this would be best done with code - but I don't know the syntax!
The file I want to open is called
GP reg Pay Circular 2009-10.pdf
and it is on the root directory of our fileserver, which is mapped as the Z
drive on the various workstations.
How do I open this file using code? Presumably I need first to specify the
path to open Adobe Reader: this is
C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe
For what it's worth, the argument for the RunApp command was
="C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" & """" & " " & """"
& "Z:\GP reg Pay Circular 2009-10.pdf" & """"
.... but I kept getting a message that the file cannot be found. I tried
various amendments of the apostrophes, but to no avail!
Am I right to suppose that this would be easier using code, rather than the
macro RunApp command?
Hope someone can help.
Many thanks
Leslie Isaacs
I have a button on a form that I want to use to open a particular pdf file.
I had tried doing this with a macro, using the RunApp command, but can't get
it to work (see my post in the macros newsgroup), and in any case I wondered
whether this would be best done with code - but I don't know the syntax!
The file I want to open is called
GP reg Pay Circular 2009-10.pdf
and it is on the root directory of our fileserver, which is mapped as the Z
drive on the various workstations.
How do I open this file using code? Presumably I need first to specify the
path to open Adobe Reader: this is
C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe
For what it's worth, the argument for the RunApp command was
="C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" & """" & " " & """"
& "Z:\GP reg Pay Circular 2009-10.pdf" & """"
.... but I kept getting a message that the file cannot be found. I tried
various amendments of the apostrophes, but to no avail!
Am I right to suppose that this would be easier using code, rather than the
macro RunApp command?
Hope someone can help.
Many thanks
Leslie Isaacs