Macro condition Select Object

E

eye59

I have a macro that selects several reports to run, after they run I change
the focus via SELECT OBJECT as a way to size the reports specifically so that
multiple reports are visible on the screen. In some cases, when there is no
data the reports will not run. I have a no data macro set up for that.
How do I setup a condition in the select object line of the macro that tells
the macro IF there is NO report skip this step?


Thanks
 
S

Steve Schapel

Eye,

One way would be to test the query that the report is based on, if it
returns any records. In other words, the Condition of the macro action
would be like this...
DCount("*","YourQuery")>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