Delete records from table in ANOTHER database

kathywebster

New member
Local time
Yesterday, 23:23
Joined
Nov 22, 2011
Messages
7
I am a novice at VBA. I would like to implement it to delete all records from a temp table in another database. In other words, I want to write code in Database_A to delete all records from t_temp in Database_B. Can you help?
Thanks so much!
 
I believe you can use the IN keyword, and enclose the path to the database file in single quotes, so something like...
Code:
CurrentDb.Execute "DELETE FROM SomeTable IN 'C:\SomeOther\Database.mdb'"
Mark
 
Brilliant! Thank you!
 

Users who are viewing this thread

Back
Top Bottom