As the form will load the button and sub-form at the same time. You should add it to the "After Update" event I imagine.
You can access this via the Property Sheet - > Event -> After Update section, select the ellipsis and choose code (or choose Event Procedure from the drop down and then...