>I have a data entry form that allows a user to skip ahead to the next image/record. How do I create a keypress event that will allow the user to hit the F1 instead of having to either click the NEXT button on the screen or hitting ALT+N?
Hi Liz,
1) I personally don;t think it's a good idea to use F1 for that since that is recognized as the standard Help key.
2) Identify the event(s) you want the Next record functionality to be fired from.
3) In that event, the code would look something like
IF nKeycode = 28 && For F1 key
* Do you code here
ENDIF
4) If this will occur in more than one event, you can put the record skipping code in a user defined method of the form and call the method from the code above.
5) You can find various nKeyCode values in the help under "INKEY()"
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.