right click on the button in design view, goto properties, select the event tab, go to on click... it should already say "Event Procedure", click the ... to the right of the row. That will take you into the vba editor.
If you used the wizard to make this button you will see
Private Sub...