Mike,
Two problems with that code. It won't work if the user hits the Escape key. And it may accidently trigger if the user even just has the mouse sitting over the top of the cancel control without clicking it.
>Hi Peter,
>
>>I need to know what was clicked (or typed) in an event so that when a client hits the CANCEL button on a form, my standard input validation routines can be skipped and the CANCEL processed.
>
>In addition to the last key way, something like:
>
>type('sys(1270).Cancel') = 'L' and sys(1270).Cancel
>
>>Also... if I just skip that part of the valid code with a if then or something, will the code for the CANCEL fire immediately following?
>
>Yep, AKAIK