I have a universal dialog box with a command button that closes the dialog box when clicked. This dialog box is used with several different "master" forms. I would also like to go to a control on the "master" form when the dialog box is closed. Is there a way to assign code to the command button in VBA.