I am using "DoCmd.OpenReport strMyRepName, acViewPreview, strMyFilter" command to open a report in a preview mode.
How can I avoid to open it if there are no records?
I tried to use the NoData event, but after this event occures the command DoCmd.OpenReport ... , and I get an error.
Please...