Ensuring Child is deleted along with Parent

=TB=

Registered User.
Local time
Today, 19:49
Joined
Aug 13, 2002
Messages
68
Is there away of ensuring that when a record on a form is deleted any child in a relationship with it on a sub form is deleted?

Thanks in advance
 
You could use some VBA code to do it, but really the best way to handle relationships like these is using Access' cascading relationships that you set up in the Relationships window. You can set it up so that if you delete a record on the "one" side of a one-to-many join, the child records on the "many" side get deleted as well. Check out the Access on-line help and write back if you need more assistance.
 
Thankyou

Force Referencial Integerity / Cascade Delet Related Records is not an option I can use in this perticular instance. Would you happen to know what the vb code would be to do this?

Thanks in Advance.
 

Users who are viewing this thread

Back
Top Bottom