vbaInet, thanks for responding.
I don't understand your use of the term 'Event Box'.
I'm using Access2003. The code is run by clicking a button, so I go into design view on the form, highlight the button, display its properties, click the Event tab, then the 'On Click' event and next to [Event...