Check if you have any On Escape code or On key label Escape code.
>Hi Gang!
>
>I have a form that has some werid behavior.
>
>It has a CANCEL button and an EXECUTE button (to run the Store End of Day for the POS system).
>
>The CANCEL button has been given the the CANCEL property equal to TRUE.
>
>When I run the form, and press the ESC key, it doesn't automatically do the CLICK event for the CANCEL button. The form just scrolls up a bit and that's it.
>
>If I click on the CANCEL button (or press ENTER on it), it does the CLICK event just fine.
>
>Is there some other property for the form I need to set, so the CANCEL property will take hold of the CANCEL button.
>
>What should I look for?
>
>Thanks!