Pdf

Kenln

Registered User.
Local time
Yesterday, 22:25
Joined
Oct 11, 2006
Messages
551
Does anyone know how to open a PDF from Access?
 
Shell or FollowHyperlink should both work. More info on both in VBA help.
 
I need to select the PDF based on the current record (the PDF name is not fixed). I believe I can select the proper file name (I think).

But since it changes I'm not sure if a hyperlink will work.

How would I shell?
 
I tried
Code:
Dim RetVal
RetVal = Shell("C:\Documents and Settings\kennis\My Documents\speed_up_xp.pdf", 1)

and I got 'Invalid Procedure Call of Argument'
 
Use the FollowHyperlink method. Build the string and then call it:

Code:
Dim strPath As String

strPath = "C:\Test\" & Me.YourTextBox

FollowHyperlink strPath
 

Users who are viewing this thread

Back
Top Bottom