-Select the button (design view)
-Go to the property sheet
-Select the ‘Event’ tab
-Clear the actions for all of the events
Then start over defining the action for the desired event (most likely OnClick).
If you want to close the current form when pressing the button, then:
1) Select the button (design view)
2) Go to the property sheet
3) Select the ‘Event’ tab
4) On the ‘On Click’ button row click on the ‘…’ button and select ‘Macro Builder’
5) When creating the macro choose ‘Close’ from the Action dropdown box
6) Close the macro builder (and save the changes)
7) Test your button.
If you want to close another form, then in step 5 from the above list, choose ‘Form’ as the object type in the ‘Action Arguments’ section (at the bottom of the window), and select the appropriate form name from the ‘Object Name’ dropdown list.
Let us know how it goes.