ACC: How Microsoft Access Deletes Objects from a DatabaseID: Q90129
|
Novice: Requires knowledge of the user interface on single-user computers.
This article describes what happens internally in Microsoft Access when you
delete an object (a table, a form, a query, and so on) from a database.
When you delete an object from the Database window, it is not physically
deleted from the database at that moment. Instead, it is renamed to a
temporary name (for example, ~TMPCLP1) and hidden, so that it disappears
from the Database window. The renaming operation occurs very quickly,
regardless of the object's size. The hidden object is physically deleted
from the database as soon as you take any action other than the Undo
Deletion action.
Microsoft Access deletes objects in this manner so that you can undo an
accidental deletion, but only if you have not performed any other action
that makes "undoing" an object deletion impossible. Microsoft Access can
undo commands only one level back; it cannot queue up multiple commands to
undo.
Because the physical deletion of the object occurs when you perform the
next action rather than at the moment you choose the Delete command, your
computer may appear to stop responding (hang) while it performs the delete
operation. If the object is large enough, the deletion may take some time.
NOTE: If you restart your computer before the deletion is complete, the
hidden temporary object remains in the database, wasting space. To remove
hidden objects such as this, compact the database.
For more information about the Undo option, search on the word "undo" using the Microsoft Access Help Index, or ask the Microsoft Access 97 Office Assistant.
Additional query words: erasing
Keywords : kbusage GnlOthr
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 11, 1999