Auto remove corresponding record from subform report

Auto remove corresponding record from subform report

I have a main form with a subform in it. So lets say I make an entry in the main form, and make two entries/rows in the subform and hit submit. Now, the subform report should have two entries in it. But now, if I go back and edit the main entry and remove one of the rows from the subform and submit it, I want it to delete the corresponding record from the subform report. How do I do this?