Mike Hughes
Registered User.
- Local time
- Today, 21:07
- Joined
- Mar 23, 2002
- Messages
- 493
I have a command button on a form. When the button is clicked a macro runs the report and emails it to a pre-determined email address.
I would like to know if there is a way to stop this process if there is no data returned in the report. In other words if the macro is run and there is not data picked up to populate the report I just want the process to stop there and not send out an email with a report with no data.
Is this possible and how could I do it?
Thanks
I would like to know if there is a way to stop this process if there is no data returned in the report. In other words if the macro is run and there is not data picked up to populate the report I just want the process to stop there and not send out an email with a report with no data.
Is this possible and how could I do it?
Thanks