Delete all MS Access Objects

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oscar Suarez
    New Member
    • Dec 2010
    • 3

    Delete all MS Access Objects

    Is there a way to delete all Access objects(tables, queries, forms, etc) using vba?
  • Stewart Ross
    Recognized Expert Moderator Specialist
    • Feb 2008
    • 2545

    #2
    It is of course possible to delete items from tabledef, querydef collections and so on. I see no legitimate use of such techniques to remove all tables, forms etc in an Access database.

    Even if the circumstances related to a trial database it would be ill-advised to remove tables populated by users, as the data belongs to the user, not to the developer.

    We cannot post code which could be used to damage or destroy an Access database for what must surely be malicious purposes, and to prevent further attempts to do so I am closing this thread.

    -Stewart
    Last edited by Stewart Ross; Dec 20 '10, 09:44 PM. Reason: Expanded answer.

    Comment

    Working...