I have a form that creates controls at run-time based on criteria from the user. The controls being created are command buttons and I would like to add a small piece of code into each button's OnClick event as they are created. Access will let me do this with a macro but I would much rather define the code directly. Does anyone have any experience with dynamically changing event procedures? Any help is appreciated.