A
Amit
MS Access 2K, Windows XP
====================
Hi,
I have an unbound report that contains 3 other reports that are bound to
separate queries. I open the main report from a form after specifying
criteria.
Everything is working the way it should when there is data to display,
except when there is no data to display, the report opens with a blank page.
I have the following in the No Data event of the main report as well as the
3 other reports included on the main report:
msgbox "No data to display."
cancel=true
Am I missing something here? In other reports, when there is no data, this
works by displaying the message and not opening the report.
Would appreciate some help on this so that if there is no data to display
(meaning all the 3 reports have no data), then instead of opening a blank
report, a message is displayed.
Thanks!
-Amit
====================
Hi,
I have an unbound report that contains 3 other reports that are bound to
separate queries. I open the main report from a form after specifying
criteria.
Everything is working the way it should when there is data to display,
except when there is no data to display, the report opens with a blank page.
I have the following in the No Data event of the main report as well as the
3 other reports included on the main report:
msgbox "No data to display."
cancel=true
Am I missing something here? In other reports, when there is no data, this
works by displaying the message and not opening the report.
Would appreciate some help on this so that if there is no data to display
(meaning all the 3 reports have no data), then instead of opening a blank
report, a message is displayed.
Thanks!
-Amit