I need to delete all tables which are linked in my access database.
This is the query which is returned all the linked tables (odbc and access linked tables) :
SELECT [MSysObjects].[Name]
FROM MSysObjects
WHERE Left([Name],1) <> "~" AND (MSysObjects.Type = 6 OR MSysObjects.Type = 4)
ORDER BY MSysObjects.Name;
But now i think i have to do a for each with this DoCmd.DeleteObject acTable, Table.name in order to close all my tables, but i don't know how to do.