For each tdf in db.tabledefs
If tdf.Name = (your parameters here for name or name contains xxx)
db.execute "DROP TABLE xyz;" 'you will need to identify your table name here
Endif
Next tdf
You will need error handling. Look under Access help for tabledef, drop, etc for further information. Also, do a search in this forum for articles - there are many.
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.