@preks The issue of where to put macros is too long to discuss here. What you are doing will work OK for you.
However, the new macro presented (seen this one before) has a problem. Try this. Make a change in any field in your master record. Now, without saving that master record, click on either of the other subform grids. When you get the message to “Update Record?” select NO & see what happens.