J
John Andrews
I have a created a macro which executes on closing the main data entry
form of a database. The user is supposed to close the database at the
and of the day which causes the form to close and the macro to be
executed. The macro works fine in testing when just the form is closed
but the database remains open. However when the form is force closed
via database closure the macro seems hobbled. It works like this:
Four different rtf files are created via OutputTo from a report which
gets it's parameters from a form which is filled out systematically
(SendKeys) by the macro with predefined parameters. The problem is
that though four reports are created they are all the same (first)
report. I'd appreciate a solution to this which ideally does not
involve modules. Thanks in advance. Sequence below:
RunApp (Calls batch file to delete the previous day's rtfs)
OpenForm
GoToControl
Send Keys (First parameter)
OutputTo (First rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Second parameter)
OutputTo (Second rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Third parameter)
OutputTo (Third rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Fourth parameter)
OutputTo (Fourth rtf)
Close (Close Form without saving)
Close (Close Report without saving)
form of a database. The user is supposed to close the database at the
and of the day which causes the form to close and the macro to be
executed. The macro works fine in testing when just the form is closed
but the database remains open. However when the form is force closed
via database closure the macro seems hobbled. It works like this:
Four different rtf files are created via OutputTo from a report which
gets it's parameters from a form which is filled out systematically
(SendKeys) by the macro with predefined parameters. The problem is
that though four reports are created they are all the same (first)
report. I'd appreciate a solution to this which ideally does not
involve modules. Thanks in advance. Sequence below:
RunApp (Calls batch file to delete the previous day's rtfs)
OpenForm
GoToControl
Send Keys (First parameter)
OutputTo (First rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Second parameter)
OutputTo (Second rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Third parameter)
OutputTo (Third rtf)
Close (Close Form without saving)
Close (Close Report without saving)
OpenForm
GoToControl
Send Keys (Fourth parameter)
OutputTo (Fourth rtf)
Close (Close Form without saving)
Close (Close Report without saving)