K
KJalon
Using Task Scheduler to Run a Macros Gives An Error Message When Closing.
I created a scheduled task that runs a macro. The task starts fine, Access
is opened, the macro does what its supposed to do, then ends. But instead of
closing after 1 minute as scheduled by the Task Scheduler, Access gives an
error message:
"Microsoft Access for Windows has encountered a problem and needs to close.
We are sorry for the inconvenience...Send Error Report, etc."
Access just hangs with this message box activated in the foreground.
note:
I noticed that when the task/macro is run, Access is not activated in the
foreground. If I click to activate Access in the foreground BEFORE the
scheduled task close time (1 minute after run) then it closes normally
without error.
Can anyone tell me how to avoid having to click in the Access window to get
it to close without error?
I'm using Windows XP SP-2
I created a scheduled task that runs a macro. The task starts fine, Access
is opened, the macro does what its supposed to do, then ends. But instead of
closing after 1 minute as scheduled by the Task Scheduler, Access gives an
error message:
"Microsoft Access for Windows has encountered a problem and needs to close.
We are sorry for the inconvenience...Send Error Report, etc."
Access just hangs with this message box activated in the foreground.
note:
I noticed that when the task/macro is run, Access is not activated in the
foreground. If I click to activate Access in the foreground BEFORE the
scheduled task close time (1 minute after run) then it closes normally
without error.
Can anyone tell me how to avoid having to click in the Access window to get
it to close without error?
I'm using Windows XP SP-2