Alan Forman
Registered User.
- Local time
- Today, 19:18
- Joined
- Apr 8, 2004
- Messages
- 30
Hi Guys
I'm trying to print out several reports from one button. I have created individual buttons for each of the reports and they work fine.
But when I try to amalgamate them it stops printing after the first two reports regardless of which ones are at the top of the list.
Any suggestions, or workarounds appreicated.
Thanks
The code I'm using is ......
Private Sub Print_All_Click()
Dim strFilter As String
strFilter = "Business_ID = Forms!frm_Business!Business_ID"
DoCmd.OpenReport "rpt_Front_Page", acPrint, , strFilter
DoCmd.OpenReport "rpt_D_and_N_Suitability", acPrint, , strFilter
DoCmd.OpenReport "rpt_Profile", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_Important_Points", acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_1", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_2", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_3", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_Premium_Payment", acPrint, , strFilter
I'm trying to print out several reports from one button. I have created individual buttons for each of the reports and they work fine.
But when I try to amalgamate them it stops printing after the first two reports regardless of which ones are at the top of the list.
Any suggestions, or workarounds appreicated.
Thanks
The code I'm using is ......
Private Sub Print_All_Click()
Dim strFilter As String
strFilter = "Business_ID = Forms!frm_Business!Business_ID"
DoCmd.OpenReport "rpt_Front_Page", acPrint, , strFilter
DoCmd.OpenReport "rpt_D_and_N_Suitability", acPrint, , strFilter
DoCmd.OpenReport "rpt_Profile", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_Important_Points", acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_1", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_2", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_TOBA_3", acViewNormal, acPrint, , strFilter
DoCmd.OpenReport "rpt_Premium_Payment", acPrint, , strFilter