Hopefully these buttons are calling the same function, which then decides on what to do based on the button rather than simply running the same block of code.
Anyway, what I think you want to do is select all 3 in design mode and enter the name of the function in the click event property on the property sheet' e.g. =MyFunction(). Note that it has to be a function in a standard module. It cannot be a sub nor can it be a function on a form/report.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.