> fix this if possible
That won't happen, and for good reason. While it seems convenient for you, it is inconvenient for those who just want to copy a smartly-designed button to another form, and would hate to have the click event come across as well.
And as has been pointed out, if you really want it, that behavior is available. In such cases where I have a button that needs to run the exact same procedure from several forms, I have a public function in a standard module (I call mine [app_abbreviation]_BusinessLogic)
and I set the function call in the Click event. The function call may pass in [Form], so in the function I know which form has invoked me (Screen.ActiveForm and Screen.ActiveControl can also often be used for this).
> fix this if possible
That won't happen, and for good reason. While it seems convenient for you, it is inconvenient for those who just want to copy a smartly-designed button to another form, and would hate to have the click event come across as well.
And as has been pointed out, if you really want it, that behavior is available. In such cases where I have a button that needs to run the exact same procedure from several forms, I have a public function in a standard module (I call mine [app_abbreviation]_BusinessLogic)
and I set the function call in the Click event. The function call may pass in [Form], so in the function I know which form has invoked me (Screen.ActiveForm and Screen.ActiveControl can also often be used for this).
While I have the greatest respect for Tom's expertise, I must respectfully disagree with his reason why it shouldn't be ''fixed''. I doubt most people's buttons are so ''smartly-designed'' that they would go out of their way to copy them without the code.
I could be completely wrong, but I bet if you polled 1,000 ordinary users (that doesn't include you Tom, you're way too smart) , 950 of them would prefer to copy the code with the button. You're probably going to do something similar with the new button
so you can delete the old code when you go in to enter the new.
Either way, thank you all very much for taking the time to answer my question!! I've never posted a question to the community before, so I sincerely appreciate the thoughtful responses.