A
A Moloney
Hi.
I have the following code on a command button that
automatically prints my report when clicked. Can i modify
this code to automatically print 2 copies of the report
and ignore any blank pages (as report fits on one page
but is printing a second blank page).
Private Sub Print10a_Click()
On Error GoTo Err_Print10a_Click
Dim stDocName As String
Dim strWhere As String
strWhere = "[Date]=#" & _
Me.Date & "#"
stDocName = "10aConfirmation"
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Print10a_Click:
Exit Sub
Err_Print10a_Click:
MsgBox Err.Description
Resume Exit_Print10a_Click
End Sub
Any help appreciated.
I have the following code on a command button that
automatically prints my report when clicked. Can i modify
this code to automatically print 2 copies of the report
and ignore any blank pages (as report fits on one page
but is printing a second blank page).
Private Sub Print10a_Click()
On Error GoTo Err_Print10a_Click
Dim stDocName As String
Dim strWhere As String
strWhere = "[Date]=#" & _
Me.Date & "#"
stDocName = "10aConfirmation"
DoCmd.OpenReport stDocName, acNormal, , strWhere
Exit_Print10a_Click:
Exit Sub
Err_Print10a_Click:
MsgBox Err.Description
Resume Exit_Print10a_Click
End Sub
Any help appreciated.