You could accomplish this in various ways :
1) On Key Label Esc Application.ActiveForm.Release
2) If you have a CommandButton set it's Cancel Property to true .
3) Check LastKey() to release form.
4) Set form's KeyPreview=.T. & act accordingly.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only