There is a screen for printing various form in an application I have. Some of them integrate data into the forms, but a few are just there so the users can grab standard forms while they're in the screen. So I have been using command buttons that say what form it will open. The code that goes with the command button is as follows:
Dim Path As String
Path = DLookup("[Path]", "Region Data") & "\Common"
strInput = Path & "\ECIS.pdf"
Application.Fol lowHyperlink strInput, , False
I just had to change this particular form. The old form was a Word document and the new form is a pdf document. So all I changed was the extension in the code form ".doc" to ".pdf". It worked fine before, now it just opens Acrobat Reader, but doesn't bring the document in. And that, my friends, is my problem.
P.S. Don't worry about the path definition - I'm sure this is correct.
Thanks you.
Dim Path As String
Path = DLookup("[Path]", "Region Data") & "\Common"
strInput = Path & "\ECIS.pdf"
Application.Fol lowHyperlink strInput, , False
I just had to change this particular form. The old form was a Word document and the new form is a pdf document. So all I changed was the extension in the code form ".doc" to ".pdf". It worked fine before, now it just opens Acrobat Reader, but doesn't bring the document in. And that, my friends, is my problem.
P.S. Don't worry about the path definition - I'm sure this is correct.
Thanks you.
Comment