How to open report 'elegantly' if nothing to show.

T

ThomasAJ

DoCmd.OpenReport "ABC"

When query behind it has nothing in it the report just flashes (or at least
its window does).

Can something be put in the OPEN/LOAD event that can cause an elegant
OpenReport.
 
D

David W. Fenton

Cancel the NoData event of the report.

....and add an error handler to the bit of code where
DoCmd.OpenReport was called (you'll want to ignore error 2051).
 

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