Would love to hear from anyone who knows how to delete multiple objects (for example, tables) from the database window. I've got over 100 table links and sometimes need to delete all or most of them.
***This deletes all of your tables in your project***
Do While DCount("[Name]", "MSysObjects", "[Type]=1 And [Name] NOT Like ""MSYS*""" > 0
DoCmd.DeleteObject acTable, DFirst("[Name]", "MSysObjects", "[Type]=1 And [Name] NOT Like ""MSYS*"""
Loop
or see at faq181-690 for selecting other objects
In case of tables,if you need to delete some relationships before see also at faq181-837
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.