Originally Posted by
RachelBedi
I have a command button to open files pertaining to lines of data in my database - it works great - assuming I know what kind of file extension the documentation will be. Unfortunately users may be saving documentation with a standardized naming convention but with an infinite number of extensions.
Is there a way I could code this so that it will open any file with the name associated with the file regardless of what program the documentation was saved as?
Below is the code for my command button;
Private Sub Command2_Click()
Application.FollowHyperlink "S:\_Activations\Authentication Docs\" & Me.PaymodeID & "_co.doc"
End Sub