Create an event procedure
Run a macro or event procedure for an event on a form, report, or control
DoEvents Function