K Kenln Registered User. Local time Yesterday, 22:25 Joined Oct 11, 2006 Messages 551 Mar 10, 2009 #1 Does anyone know how to open a PDF from Access?
pbaldy Wino Moderator Staff member Local time Yesterday, 19:25 Joined Aug 30, 2003 Messages 36,157 Mar 10, 2009 #2 Shell or FollowHyperlink should both work. More info on both in VBA help.
K Kenln Registered User. Local time Yesterday, 22:25 Joined Oct 11, 2006 Messages 551 Mar 10, 2009 #3 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 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?
K Kenln Registered User. Local time Yesterday, 22:25 Joined Oct 11, 2006 Messages 551 Mar 10, 2009 #4 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'
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'
boblarson Smeghead Local time Yesterday, 19:25 Joined Jan 12, 2001 Messages 32,040 Mar 10, 2009 #5 Use the FollowHyperlink method. Build the string and then call it: Code: Dim strPath As String strPath = "C:\Test\" & Me.YourTextBox FollowHyperlink strPath
Use the FollowHyperlink method. Build the string and then call it: Code: Dim strPath As String strPath = "C:\Test\" & Me.YourTextBox FollowHyperlink strPath
K Kenln Registered User. Local time Yesterday, 22:25 Joined Oct 11, 2006 Messages 551 Mar 10, 2009 #6 Awesome, Thanks Bob!