Hi
I have a form with the following code on a Cmd Button to view a scanned or saved document for some fire safety certifciates. The scanned docs are saved in a generic Z:\ witht he file name always equal to the relevant property code.
I now want to be able to print that same document from within the form without needing to launch the pdf viewer or navigate away from the form is this possible?
here is the current code:
Thanks
I have a form with the following code on a Cmd Button to view a scanned or saved document for some fire safety certifciates. The scanned docs are saved in a generic Z:\ witht he file name always equal to the relevant property code.
I now want to be able to print that same document from within the form without needing to launch the pdf viewer or navigate away from the form is this possible?
here is the current code:
Thanks
Code:
Private Sub Command351_Click()
Dim strFilePath As String
strFilePath = "Z:\GasCertificates\" & Me.txttwenty & ".PDF"
If Dir(strFilePath) > "" Then
Application.FollowHyperlink strFilePath
Else
MsgBox "There are no GAS Certificates saved for this Property. Please Add or Scan a new document!"
End If
End Sub