Firstly give your controls meaninful names. Command405 is not going to mean anything to you or anyone else 6 montns down the road.
Most developers do not recommend calling control events directly.
Create a common sub and call it from your both your command buttons.
By default Event Procedures are Private so even if you get the syntax correct it will not work. You would have to change to public and then do what @Gasman suggests. However, as he mentioned it is cleaner to break it off into a stand alone procedure that the click event calls and then the subform can call
By default Event Procedures are Private so even if you get the syntax correct it will not work. You would have to change to public and then do what @Gasman suggests. However, as he mentioned it is cleaner to break it off into a stand alone procedure that the click event calls and then the subform can call
Please take the EXPERT advice to NOT call the procedure directly. Move the code to a standard module and call it from every place you want to use it. You can thank us for that advice later. Or not because if you follow the advice, you won't ever run into a problem. For now, rename your controls.