J
jeanulrich00
Hi
I have a button on a form that open a report
As I don't want that the report open when there is no data, I have
used a small script on the OnNoData event of the report
I just add msgbox "Sorry there is no data"
Here is the problem
When I click on the button to open the report, when there is no data,
The message box open telling "Sorry there is no data" I click on the
OK button and the same message box open a second time "Sorry there is
no data". I click a second time on OK and then the report opens with
no data.
What I want is when there is no data, message box open "Sorry there is
no data" and then when I click on OK no action occur, like if the code
stop and I am back on the form.
Thanks
I have a button on a form that open a report
As I don't want that the report open when there is no data, I have
used a small script on the OnNoData event of the report
I just add msgbox "Sorry there is no data"
Here is the problem
When I click on the button to open the report, when there is no data,
The message box open telling "Sorry there is no data" I click on the
OK button and the same message box open a second time "Sorry there is
no data". I click a second time on OK and then the report opens with
no data.
What I want is when there is no data, message box open "Sorry there is
no data" and then when I click on OK no action occur, like if the code
stop and I am back on the form.
Thanks