I am trying to create some code for a button in a report that will follow a hyperlink to a specific file. The problem I'm having is that the files that are at the end of the hyperlink can have various extensions (*.doc, *.docx, *.pdf, etc.) I'd like to be able to put a wildcard in the code to allow the opening of the file regardless of the extension. Is there a way to do this?
Code so far:
Private Sub Command6_Click()
Application.FollowHyperlink ("C:\Users\jbegg\Documents\AccessTestFolder\" & [FileName] & ".*")
End Sub
Any help or direction will be greatly appreciated.
Code so far:
Private Sub Command6_Click()
Application.FollowHyperlink ("C:\Users\jbegg\Documents\AccessTestFolder\" & [FileName] & ".*")
End Sub
Any help or direction will be greatly appreciated.