G
Guest
I am running a report from a command button which first opens up a custom
parameter form. (ref:
http://office.microsoft.com/en-us/assistance/HA011170771033.aspx). Everything
works fine except when I click Cancel on the parameter form it errors. The
code behind the Cancel button is DoCmd.Close.
The error is:Run-time error '2501':
The OpenReport action was cancelled.
How do I avoid this and just return to the first form?
Thanks in advance
parameter form. (ref:
http://office.microsoft.com/en-us/assistance/HA011170771033.aspx). Everything
works fine except when I click Cancel on the parameter form it errors. The
code behind the Cancel button is DoCmd.Close.
The error is:Run-time error '2501':
The OpenReport action was cancelled.
How do I avoid this and just return to the first form?
Thanks in advance