Clearing Table in another database

LWCARAB

Registered User.
Local time
Today, 21:53
Joined
Jan 29, 2008
Messages
38
I urgently need a way to clear a table in a different access database, this table is not and connot be a linked table. Please help.

Regards,

Richard
 
why not just open the database, then the table then delete all the records
 
Because this must happen each time the database is opened, even if I automated the open and delete part, it would take a while.
 
An autoexec macro running OpenQuery for a DelteQuery or DeleteObject if the table itslelf is to be deleted
 
Sorry I meant do it all in code, not manually. Search Help for workspace and open recordset
 
Last edited:
Executed from another database it will delete all records from "sometable" in database aap.mdb
Code:
currentdb.execute "delete from sometable in 'c:\temp\aap.mdb'"
HTH:D
 

Users who are viewing this thread

Back
Top Bottom