View a PDF from Access

Now you have the path twice. Try the line in post 2 after putting just the file name in the variable.
 
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.
 
Thanks for all the help everyone.
 
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.
 
Glad you got it working.
 

Users who are viewing this thread

Back
Top Bottom