L LWCARAB Registered User. Local time Today, 21:53 Joined Jan 29, 2008 Messages 38 Apr 14, 2008 #1 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
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
Dennisk AWF VIP Local time Today, 21:53 Joined Jul 22, 2004 Messages 1,649 Apr 14, 2008 #2 why not just open the database, then the table then delete all the records
L LWCARAB Registered User. Local time Today, 21:53 Joined Jan 29, 2008 Messages 38 Apr 14, 2008 #3 Because this must happen each time the database is opened, even if I automated the open and delete part, it would take a while.
Because this must happen each time the database is opened, even if I automated the open and delete part, it would take a while.
M Mike375 Guest Apr 14, 2008 #4 An autoexec macro running OpenQuery for a DelteQuery or DeleteObject if the table itslelf is to be deleted
An autoexec macro running OpenQuery for a DelteQuery or DeleteObject if the table itslelf is to be deleted
Dennisk AWF VIP Local time Today, 21:53 Joined Jul 22, 2004 Messages 1,649 Apr 14, 2008 #5 Sorry I meant do it all in code, not manually. Search Help for workspace and open recordset Last edited: Apr 14, 2008
G georgedwilkinson AWF VIP Local time Today, 15:53 Joined Mar 4, 2008 Messages 3,856 Apr 14, 2008 #6 Use DAO or ADO automation. Lots of information out there how to do this.
Guus2005 AWF VIP Local time Today, 22:53 Joined Jun 26, 2007 Messages 2,642 Apr 14, 2008 #7 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
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
Rabbie Super Moderator Local time Today, 21:53 Joined Jul 10, 2007 Messages 5,906 Apr 14, 2008 #8 This question has already been answered in this thread
Guus2005 AWF VIP Local time Today, 22:53 Joined Jun 26, 2007 Messages 2,642 Apr 14, 2008 #9 Thank you for pointing that out.