Multiple Report Printing

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

 
Do you get some error message?
Have you tried to step through you code?
 
Hi

Thanks for reading my thread.

No error code is displayed, just prints the first to reports, and I don't know how to step through the code.

Thanks

Alan
 
That doesn't seem to give any clues, the sequence just stops after the first 2 reports.

Thanks for your time.

Alan
 
Are you sure the filter is correct, for me it looks suspicious, I would have thought is should be:
Code:
strFilter = "Business_ID =" & Forms!frm_Business!Business_ID
Else try by removing the filter from all reports.
 

Users who are viewing this thread

Back
Top Bottom