Originally Posted by
June7
Still dirty water.
Select [Event Procedure] in the event property and click the ellipsis to open VBA editor, type code.
Use mouse to click the button and the code executes.
Can also use '&' character to set a shortcut key in the button caption or its associated label. This allows typing Alt+character to invoke the button Click event. And if there are no data controls on the form to get focus, don't even need the Alt.
Also, any event VBA procedure can be called be another procedure.
So yes, something must happen (an event) to cause code to run.