Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004

    Unanswered: How to run function on when hitting Enter button

    This is probably a really dumb question but I've never tried to run a function on key press before.

    I have a form and I want the user to be able to hit the Ok button or to hit the Enter button once they are done typing to run my code. How would I go about doing this. I have used just about every event but key press. I appreciate any help.
    You know, I'm sick of following my dreams, man. I'm just going to ask where they're going and hook up with 'em later

  2. #2
    Join Date
    May 2005
    Nevada, USA
    Provided Answers: 6
    My first choice would be the after update event of the control, which should fire when they hit enter. You can use the keypress event, but I prefer not to since it runs with every keystroke.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts