> This approach works, thank you. Can the same approach be expanded to include mouse
>click on the EXIT button?
ReUpdate: No, I was right the first time.
Set the Cancel property of the Exit button to .T. -- this way, when you test LASTKEY() in the valid event of the textbox, it will return 27, as if you had hit the Escape key.