How to delete records and related records in an Access database.?

Can anyone explain *as simply as possible* how to delete records with their related records in access database to ensure the consistency of the database is maintained.
But, I mean I need a way that will be fool proof and definitely delete the record with all related records to it.

Any help? Thanks.

If you have correct relationships linking primary keys to foreign keys, open any relationship between two tables containing related records, and then tick the box titled "cascade delete related records". With this option selected, every time that you delete a parent record, all related records will be deleted as well, regardless of how you perform the delete.

A word of caution though. You do not always want to delete related records. A text book example would be employees and projects. Just because an employee no longer exists, if you delete that employee from the system, you would (probably) not want to delete all the projects they were working on with them.

2 Responses to “How to delete records and related records in an Access database.?”

  1. Bilal Says:

    there are two way to delete da record one is from da front of report where u make da option of delete record & other is on da table where ur entering da value of data
    References :

  2. Gecko Says:

    If you have correct relationships linking primary keys to foreign keys, open any relationship between two tables containing related records, and then tick the box titled "cascade delete related records". With this option selected, every time that you delete a parent record, all related records will be deleted as well, regardless of how you perform the delete.

    A word of caution though. You do not always want to delete related records. A text book example would be employees and projects. Just because an employee no longer exists, if you delete that employee from the system, you would (probably) not want to delete all the projects they were working on with them.
    References :

Leave a Reply