Relational delete

L

lipszydz

I've got 3 tables , which were previously just 2 tables in relation n:n ,
then I've devided them into 3 tables, with double relation 1:n to the main
table.
There comes the task to delete the record from the main table, but when it's
done, I've got some trash in the 2 existing tables (which should be also
deleted).
Is there any way to delete the records which are in relation with the main
record without using macro's?

Przemek Lipka
 
S

Scott McDaniel

If you setup realtionships via the Relationship window (it's on the main
toolbar when viewing the Tables in the database window), you can also set
them to Cascade Delete\Update ... this would delete all child records when
deleting parent records ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top