NoDataInReports.mdb (beginner) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 30 Jul 2008 at 10:47pm |
Please consider donating $1 per sample downloaded, find out why here.
NoDataInReports.mdb This sample illustrates how to cancel a report that has no data in it. It uses the OnNoData event of the report. The report "rptGLTable" has the following code in the OnNoData event:
MsgBox "There is no data for this report" This cancels the report, and the error generated (2051) is trapped in the OnClick event of the Preview report button. To test, choose 'abc' in the combo box, then choose 'xyz'. There is no 'xyz' data. |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |