Hello
I have the following code that collates 2 differet reports:
Function CollateReports2(Rpt1 As String, Rpt2 As String)
Dim MyPageNum As Long, _
NumPages As Long
NumPages = PageCount(Rpt1)
'Set the page number loop and alternate printing the report pages.
For MyPageNum = 1 To NumPages
'NumPages is the number of pages to print.
DoCmd.SelectObject acReport, Rpt1, True
DoCmd.PrintOut acPages, MyPageNum, MyPageNum
DoCmd.SelectObject acReport, Rpt2, True
DoCmd.PrintOut acPages, MyPageNum, MyPageNum
Next MyPageNum
End Function
Is there a way to tweak this so that the 2 reports are also stapled?
Thanks in advance for your help
I have the following code that collates 2 differet reports:
Function CollateReports2(Rpt1 As String, Rpt2 As String)
Dim MyPageNum As Long, _
NumPages As Long
NumPages = PageCount(Rpt1)
'Set the page number loop and alternate printing the report pages.
For MyPageNum = 1 To NumPages
'NumPages is the number of pages to print.
DoCmd.SelectObject acReport, Rpt1, True
DoCmd.PrintOut acPages, MyPageNum, MyPageNum
DoCmd.SelectObject acReport, Rpt2, True
DoCmd.PrintOut acPages, MyPageNum, MyPageNum
Next MyPageNum
End Function
Is there a way to tweak this so that the 2 reports are also stapled?
Thanks in advance for your help