ACC2000: How to Delete Objects ProgrammaticallyID: Q209032
|
You can delete objects programmatically by using either the Delete method or the DeleteObject method. You can also use the DeleteObject action in macros.
The Delete method applies to the QueryDefs and TableDefs collections and can be used to delete queries and tables. The Delete method does not apply to the Containers collection and cannot be used to delete objects such as forms or reports.
You can use the DeleteObject method (in code) or action (in a macro) to delete objects that you cannot delete by using the Delete method. Note that Microsoft Access does not request user confirmation when you delete objects by using either the Delete method or the DeleteObject method or action.
For more information about the Delete method, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "Delete method" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
For more information about the DeleteObject method, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "DeleteObject method" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic.
Additional query words:
Keywords : kbprg kbdta PgmObj
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: June 10, 1999