Guest_imported
New member
- Jan 1, 1970
- 0
I'm opening a report from a form using doCmd.OpenReport, I wrote a function for the OnNoData event in the report which is supposed to cancel the printing if no records are found.
The function cancels the printing but a error message is displayed:
-------------------------------------
Run-Time error '2501'
The OpenReport action was Canceled.
[debug] [end]
-------------------------------------
When I hit [debug] it takes me to the exact line in the form where the OpenReport statement is... ?
can somebody help me with this??
The function cancels the printing but a error message is displayed:
-------------------------------------
Run-Time error '2501'
The OpenReport action was Canceled.
[debug] [end]
-------------------------------------
When I hit [debug] it takes me to the exact line in the form where the OpenReport statement is... ?
can somebody help me with this??