You can try :
dbs.Execute "DROP TABLE [YESTERDAY_TABLE];"
But if you don´t want to delete the "yesterday-table" you can use "today-table" overwriting itself every day with a SELECT..INTO sentence.
DoCmd.SetWarnings False
'** Don´t ask : Overwrite existing...
If you have created a Tabledef with the Connect method to work with an external database table, the only way I know to end the connection is just deleting the TABLE.
For example: dbasetempname.TableDefs.Delete Tablename
[afro]Cheers ! Balbino.
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.