Please help me get rid of unwanted messages. Here is a detailed explanation of the problem:
The Problem:
I have a report based on a query.
When I click on the the switchboard item to open the report, the report runs a macro in its "on open" event.
The macro opens a "date" form that allows the user to enter two date parameters that restrict the query results to show records between those two dates only.
Pressing "OK" on the form works great.
Pressing "Cancel" runs a macro that closes the "date" form, but then another window pops up asking for the parameter as specified in the query. (i.e. Forms!frm_dates!BeginDate) I have to press that window's "cancel" button as well.
The Question:
How can I stop that box from popping up when the user presses "Cancel" on the "date" form?
Thanks!
The Problem:
I have a report based on a query.
When I click on the the switchboard item to open the report, the report runs a macro in its "on open" event.
The macro opens a "date" form that allows the user to enter two date parameters that restrict the query results to show records between those two dates only.
Pressing "OK" on the form works great.
Pressing "Cancel" runs a macro that closes the "date" form, but then another window pops up asking for the parameter as specified in the query. (i.e. Forms!frm_dates!BeginDate) I have to press that window's "cancel" button as well.
The Question:
How can I stop that box from popping up when the user presses "Cancel" on the "date" form?
Thanks!