I need to use the same print button for PDF.
the following is the print button code:
Private Sub Print_Click()
On Error GoTo Err_Print_button_Click
Dim stDocName as String
Dim stLinkCriteria As String
stDocName = "Script"
stLinkCriteria = "[ScriptID]=" &Me![ScriptID1]
DoCmd.OpenReport stDocName, acPreview, stLinkCriteria
Exit_Print_button_Click
End Sub
I need a sample code to add a control button to transfer the same doc to PDF or can I use the same print button for dual option(either to print or to send to PDF)?
Thanks
the following is the print button code:
Private Sub Print_Click()
On Error GoTo Err_Print_button_Click
Dim stDocName as String
Dim stLinkCriteria As String
stDocName = "Script"
stLinkCriteria = "[ScriptID]=" &Me![ScriptID1]
DoCmd.OpenReport stDocName, acPreview, stLinkCriteria
Exit_Print_button_Click
End Sub
I need a sample code to add a control button to transfer the same doc to PDF or can I use the same print button for dual option(either to print or to send to PDF)?
Thanks