Link to home
Start Free TrialLog in
Avatar of dmailbox
dmailbox

asked on

Stop Event code from automatically running - MS Access

I have a form that contains 1 input field on it.  I have some vba code that is supposed to run once the user enters information in the field, then hits enter (The code is on the "On Enter" event procedure).

However, every time I OPEN the form, the vba code tries to execute.  I only want the code to execute when the user presses enter.  

How can I stop the code from running whenever I open the form?
ASKER CERTIFIED SOLUTION
Avatar of Jim Dettman (EE MVE)
Jim Dettman (EE MVE)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dmailbox
dmailbox

ASKER

Ahhhh.  Jim!  That makes complete sense....now that you explained it.

Thank you!
Extremely quick and accurate answer!