Hi
I need to add a variable to the output snapshot file, to be able to print the name with a new 'step#', when the user press the 'snapshot' command button on the form. Never done this before, My code is:
Private Sub PrintPDF_Click()
On Error GoTo Err_PrintPDF_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Script"
stLinkCriteria = "[ScriptID]=" & Me![ScriptID1]
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
DoCmd.OutputTo acOutputReport, stDocName, acSnapshot, "L:\Hopes\UAT Management\Script Library\script.snp"
Exit Sub
Err_PrintPDF_Click:
MsgBox Err.Description
Resume Exit_PrintPDF_Click
End Sub