i have a line to open report from a form:
docmd.openreport 'reportname', acpreview
the report i'm trying to open has a onNoData event procedure and set the Cancel argument to true. this should cancel the opening of the report is empty.
but access sets a run time error....
how can i then cancel my report preview?
docmd.openreport 'reportname', acpreview
the report i'm trying to open has a onNoData event procedure and set the Cancel argument to true. this should cancel the opening of the report is empty.
but access sets a run time error....
how can i then cancel my report preview?