How to pull a PDF from a file? (1 Viewer)

Hydra427

Registered User.
Local time
Today, 07:51
Joined
Mar 9, 2012
Messages
40
I have 10 different PDF's located in a file on my computer. How can I pull 1 of these PDF into a form that will open once a text box has focus.

As an example

I have a box named "display PDF", when this text box has focus I want it to open a form showing that PDF based on a number in an earlier text box "number".

Hence when I enter number 7 in the "number" box and then tab to the "display PDF" box I want it to open a new form showing the #7 PDF. I can then close the form and return to editing my original form.

Thanks, John
 

sneuberg

AWF VIP
Local time
Today, 04:51
Joined
Oct 17, 2014
Messages
3,506
I suggest setting up a form as described in this YouTube Video. Once you get that working you can add code to the afterupdate event of the "number" textbox to do what the Browse button does in the video.

I suggest not using reserve words like "number" to name things. Something like "FileNumber" would be better.
 

Users who are viewing this thread

Top Bottom