pbaldy Wino Moderator Staff member Local time Yesterday, 23:24 Joined Aug 30, 2003 Messages 36,270 Jan 12, 2019 #21 Now you have the path twice. Try the line in post 2 after putting just the file name in the variable.
Now you have the path twice. Try the line in post 2 after putting just the file name in the variable.
D Dangerous Registered User. Local time Today, 07:24 Joined Oct 18, 2018 Messages 73 Jan 12, 2019 #22 Yeah realised that but it still didn't work till I change it to Private Sub Label1689_Click() Dim strPDFfile As String strPDFfile = "D:\MDF Database\Images" & PDFfile Application.FollowHyperlink strPDFfile End Sub PDFfile (controlname) instead of strPDFfile. Works fine now.
Yeah realised that but it still didn't work till I change it to Private Sub Label1689_Click() Dim strPDFfile As String strPDFfile = "D:\MDF Database\Images" & PDFfile Application.FollowHyperlink strPDFfile End Sub PDFfile (controlname) instead of strPDFfile. Works fine now.
D Dangerous Registered User. Local time Today, 07:24 Joined Oct 18, 2018 Messages 73 Jan 12, 2019 #23 Thanks for all the help everyone.
D Dangerous Registered User. Local time Today, 07:24 Joined Oct 18, 2018 Messages 73 Jan 12, 2019 #24 I spotted the errors by adding a hyperlink field and assigning the strPDFfile variable to it. I then saw what was happening and corrected the errors. I'm learning, slowly but learning. Thanks again.
I spotted the errors by adding a hyperlink field and assigning the strPDFfile variable to it. I then saw what was happening and corrected the errors. I'm learning, slowly but learning. Thanks again.
pbaldy Wino Moderator Staff member Local time Yesterday, 23:24 Joined Aug 30, 2003 Messages 36,270 Jan 12, 2019 #25 Glad you got it working.
D Dangerous Registered User. Local time Today, 07:24 Joined Oct 18, 2018 Messages 73 Jan 12, 2019 #26 pbaldy said: Glad you got it working. Click to expand... Wouldn't have without your help. Thanks and thanks for the input from everyone else.
pbaldy said: Glad you got it working. Click to expand... Wouldn't have without your help. Thanks and thanks for the input from everyone else.
pbaldy Wino Moderator Staff member Local time Yesterday, 23:24 Joined Aug 30, 2003 Messages 36,270 Jan 12, 2019 #27 Happy to help!