In the property sheet with the form (?) open in design view, click on the ellipses for the button click event and see if it takes you to the correct procedure. By "macro" I'm assuming you're referring to a written procedure and not an actual macro. Since this is an Access question, macros are not the same thing in Access as they are in Excel.
The message is saying that there's no connection between what you have in the property sheet and any event, or there is an issue with the code in the event. In my mind and based on that, it shouldn't work whether or not the editor is open.