Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete ALL records from multiple tables? 2

Status
Not open for further replies.

Johnny42

Technical User
Jul 13, 2004
127
CA
Can I Delete ALL records from multiple tables?
 
Not unless they are related and have cascade delete selected.
Otherwise you have to delete records one table at a time.
 
could I use a cascade delete trigger ?
Yes, if the table are related and the RelationShips are properly set with referential integrity enforced.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Not sure I understand, however I dont think the tables are related...
I'm trying to automate the deletion of "Test" data across my DB
 
Why not simply write a VBA procedure with some DoCmd.RunSQL "DELETE FROM ... WHERE ..." calls ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top