Reference:
Referencing the above links, I find that I can get the click event (run from a command button on my input form) to open the named file (Document.pdf).
My table is tblIndex and the file name is field FileName. I also have a field named path with the filename as part of the path.
What is working is this:
I would like to be able to set a hyperlink click event on a control on my form that corresponds with the current record based upon the file name that changes with each record to open an adobe acrobat document in a different window.
I don't know how to do this.
It seems simple enough, but it is over my head.
Thank you for assistance with this.
rccline
Referencing the above links, I find that I can get the click event (run from a command button on my input form) to open the named file (Document.pdf).
My table is tblIndex and the file name is field FileName. I also have a field named path with the filename as part of the path.
What is working is this:
Code:
Private Sub Command0_Click()
Shell ("C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\acrobat.exe C:\Users\Mypath\Document.pdf"), vbMaximizedFocus
End Sub
I would like to be able to set a hyperlink click event on a control on my form that corresponds with the current record based upon the file name that changes with each record to open an adobe acrobat document in a different window.
I don't know how to do this.
Code:
Private Sub Command0_Click()
Dim strFileName As String
strFileName = tblIndex.FileName
Shell ("C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\acrobat.exe C:\Users\rccline\Mypath\Document.pdf"), vbMaximizedFocus
End Sub
It seems simple enough, but it is over my head.
Thank you for assistance with this.
rccline