Hi, I have a database with a 5-tier table hierarchy. My database users are not allowed to go in and delete records and as such, I have them "request" that they be deleted, by selecting a specific checkbox for each record they wish to have deleted. This doesn't happen very often, so there hasn't been a very large problem with this.
That said, however, I am having issues arise when the users do not check the deletion request box for all of the associated child records. When I attempt to process the deletion request (just a simple form button activated delete query), I get a message saying it can't delete them due to linked records.
What I want to know is whether or not there is a way to delete all child records associated with the parent record starting from the bottom up (i.e. if the top level parent record is set for deletion, it will start at the bottom and delete all associated records, then the next tier, and so on). Any thoughts?
That said, however, I am having issues arise when the users do not check the deletion request box for all of the associated child records. When I attempt to process the deletion request (just a simple form button activated delete query), I get a message saying it can't delete them due to linked records.
What I want to know is whether or not there is a way to delete all child records associated with the parent record starting from the bottom up (i.e. if the top level parent record is set for deletion, it will start at the bottom and delete all associated records, then the next tier, and so on). Any thoughts?