No Data Bypass

L

Les

I send reports to several clients on a daily basis. When
I started my business, there were only a couple of
clients and I set each of the reports up in a Macro
(SendObject) and life was good. Now I have several
hundred clients of which only some receive reports on any
given day and each day it is a different group of clients
that get the report, so I manually go down the list and
send each individual report by clicking on their Macro. I
would like to set up a send report Macro that runs each
of the individual Macros, but the ones that do not get a
report for that day would end up getting a
blank report every day. How can I set a report up in a
Macro to bypass if there is no data?
Thanks,
Ls
 
S

Steve Schapel

Les,

You can put a Condition on the SendObject macro action for each report,
something along the lines of...
DCount("*","NameOfTheReport'sQuery")>0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top