ACC1x: Microsoft Access Closes Abnormally from a MacroID: Q109366
|
When Microsoft Access is unexpectedly closed by a macro, system resources are not released, and Microsoft Access remains in the Microsoft Windows Task List even though the application is no longer available.
The abnormal closing of Microsoft Access is due to event timing in
the macro. The macro opens the Categories table, calls the Replace In
Field dialog box, and then closes the Categories table. However, the
Replace In Field dialog box, by design, functions differently than other
dialog boxes do by allowing macros to continue running while the dialog box
is displayed. Because the macro continues running the Categories table
is closed before the replace action is completed. There is no macro
action to pause the macro's execution; macro events occur sequentially
unless a modal dialog box requests input from the user. The fact
that the table is closed before the replace action is completed causes
Microsoft Access to close abnormally.
When Microsoft Access closes abnormally in this way, it does not
relinquish memory or system resources as it should.
This problem no longer occurs in Microsoft Access version 2.0.
Action
-------------------------------
OpenTable
Table Name : Categories
View : Datasheet
Data Mode : Edit
DoMenuItem
Menu Bar : Table Datasheet
Menu Name : Edit
Command : Replace
Close
Object Type: Table
Object Name: Categories
Additional query words: abnormal termination close
Keywords : kbusage McrActn
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 30, 1999