I currently have an access db in which the autoexec macro runs an exception report and then e-mails the report to two users. I have this db run automatically each night, so each morning the report is in the user e-mail inbox. Sometimes the query that the report is based on returns no data, which is fine, the report just has no data.
What I would like to do is have the macro evaluate the results of the report/query and if no data is found, not e-mail the report. That way the report would only be sent if there is data in the report.
I would be open to any other thoughts on how this might be done as well.
Thanks, Doug
What I would like to do is have the macro evaluate the results of the report/query and if no data is found, not e-mail the report. That way the report would only be sent if there is data in the report.
I would be open to any other thoughts on how this might be done as well.
Thanks, Doug