G
Guest
Hello,
I have a form which enables a user to select various reports (Listed Below)
these reports are based upon a column, and therefore the reports are filtered
on this criteria. The User also has the option to run ALL reports. When the
selects the 'ALL' option (Case 1 below) every report is run with its specific
criteria.
The problem I run into is that I also have a 'On No Data' event. If one of
the reports contains no data, the code ends. No other reports are printed.
How can I preview only the reports that have data, when the user selects the
ALL button, and only return the 'NO DATA' error message if NO reports meet
this criteria.
Any help would be much appreciated.
Thanks
Select Case Me!ReportToPrint
Case 1
DoCmd.OpenReport "rpt_NewBusiness", PrintMode, , strWhere
DoCmd.OpenReport "rpt_ProfitabilityReview", PrintMode, ,
strWhere
DoCmd.OpenReport "rpt_RePrice", PrintMode, , strWhere
DoCmd.OpenReport "rpt_AdditionalMarkets", PrintMode, ,
strWhere
DoCmd.OpenReport "rpt_AdditionalProducts", PrintMode, ,
strWhere
I have a form which enables a user to select various reports (Listed Below)
these reports are based upon a column, and therefore the reports are filtered
on this criteria. The User also has the option to run ALL reports. When the
selects the 'ALL' option (Case 1 below) every report is run with its specific
criteria.
The problem I run into is that I also have a 'On No Data' event. If one of
the reports contains no data, the code ends. No other reports are printed.
How can I preview only the reports that have data, when the user selects the
ALL button, and only return the 'NO DATA' error message if NO reports meet
this criteria.
Any help would be much appreciated.
Thanks
Select Case Me!ReportToPrint
Case 1
DoCmd.OpenReport "rpt_NewBusiness", PrintMode, , strWhere
DoCmd.OpenReport "rpt_ProfitabilityReview", PrintMode, ,
strWhere
DoCmd.OpenReport "rpt_RePrice", PrintMode, , strWhere
DoCmd.OpenReport "rpt_AdditionalMarkets", PrintMode, ,
strWhere
DoCmd.OpenReport "rpt_AdditionalProducts", PrintMode, ,
strWhere