K
Ken
In the code below I have hard coded the path to where Acrobat is installed.
What I really need is to look up the install path via code and write it to a
variable so that the code can be computer independent.
For instance, this is where the patch is stored in the registry.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe
Here is the code I'm using now that I need to modify.
***************************
Dim strFilePath As String
Dim strAcrobatPath As String
'set the file path for acrobat (please double check this)
strAcrobatPath = "C:\Program Files\Adobe\Acrobat 7\Acrobat\Acrobat.exe"
'set the file path for the pdf file (as shown in the textbox NomeFile)
'strFilePath = Me.NomeFile.Value
strFilePath = DLookup("[ImagesPath]", "tblOwnerInfo") & "\" &
Forms![frmDataEntry]![sbfDocuments]![DocID] & ".pdf"
'open the pdf file
Shell strAcrobatPath & " " & strFilePath
***************************
Thank you.
Ken
What I really need is to look up the install path via code and write it to a
variable so that the code can be computer independent.
For instance, this is where the patch is stored in the registry.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Acrobat.exe
Here is the code I'm using now that I need to modify.
***************************
Dim strFilePath As String
Dim strAcrobatPath As String
'set the file path for acrobat (please double check this)
strAcrobatPath = "C:\Program Files\Adobe\Acrobat 7\Acrobat\Acrobat.exe"
'set the file path for the pdf file (as shown in the textbox NomeFile)
'strFilePath = Me.NomeFile.Value
strFilePath = DLookup("[ImagesPath]", "tblOwnerInfo") & "\" &
Forms![frmDataEntry]![sbfDocuments]![DocID] & ".pdf"
'open the pdf file
Shell strAcrobatPath & " " & strFilePath
***************************
Thank you.
Ken