E
Ernie Lippert
On the Switchboard, I have a button <CloseProject?>
This button runs <mac_qry_Admin_Project_Close> that has 2 actions
OpenQuery: a make-table query <mtqryAdminProjectClose> (Datasheet, Edit)
OpenForm: <frmA> (Form, normal)
Entries are made on <frmA> after which a button on the form is used to run
<macClose> that has 3 actions:
OpenQuery: an update query <udQryB> (Datasheet, Edit)
OpenQuery: an append query <appQryC> (Datasheet, Edit)
OpenForm: <Switchboard> (Form, normal)
This procedure works satisfactorily on the first pass. If <CloseProject?> is
activated a second time, the expected message
"The existing table......
appears. Yes is selected and the following message appears:
Action Failed
mac_qry_Admin_Project_Close
True
OpenQuery
mtqryAdminProjectClose, Datasheet, Edit
On Halt the following message appearsâ€
"There was an error executing the command."
This behavior is consistent from the Switchboard. If, however, I close the
Switchboard and run <mtqryAdminProjectClose>, it works properly.
If I go back and run from the Switchboard, I get the error.
How do I reset the proper variables so that macro will run repeatedly from
the Switchboard?
This button runs <mac_qry_Admin_Project_Close> that has 2 actions
OpenQuery: a make-table query <mtqryAdminProjectClose> (Datasheet, Edit)
OpenForm: <frmA> (Form, normal)
Entries are made on <frmA> after which a button on the form is used to run
<macClose> that has 3 actions:
OpenQuery: an update query <udQryB> (Datasheet, Edit)
OpenQuery: an append query <appQryC> (Datasheet, Edit)
OpenForm: <Switchboard> (Form, normal)
This procedure works satisfactorily on the first pass. If <CloseProject?> is
activated a second time, the expected message
"The existing table......
appears. Yes is selected and the following message appears:
Action Failed
mac_qry_Admin_Project_Close
True
OpenQuery
mtqryAdminProjectClose, Datasheet, Edit
On Halt the following message appearsâ€
"There was an error executing the command."
This behavior is consistent from the Switchboard. If, however, I close the
Switchboard and run <mtqryAdminProjectClose>, it works properly.
If I go back and run from the Switchboard, I get the error.
How do I reset the proper variables so that macro will run repeatedly from
the Switchboard?