Help and Support
 

powered byLive Search

ACC: How to Delete Objects Programmatically

Retired KB ArticleThis article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
Article ID:116148
Last Review:January 19, 2007
Revision:2.1
This article was previously published under Q116148
Moderate: Requires basic macro, coding, and interoperability skills.

SUMMARY

You can delete objects programmatically by using either the Delete method or the DeleteObject method. You can also use the DeleteObject action in macros.

Back to the top

MORE INFORMATION

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 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.

Back to the top

REFERENCES

For more information about "Delete", search the Help Index for "Delete Method."

For more information about DeleteObject, search the Help Index for "DeleteObject Action" or "DeleteObject Method."

Back to the top


APPLIES TO
Microsoft Access 2.0 Standard Edition
Microsoft Access 95 Standard Edition
Microsoft Access 97 Standard Edition

Back to the top

Keywords: 
kbhowto kbprogramming KB116148

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.