>>If the user presses escape there's no problem. The valid event doesn't fire even though the focus is on the textbox at the moment, and the form is closed normally.
>>
>>The problem occurrs when the user clicks on the Cancel button on the form. Then, the valid event fires and focus returns to the textbox.
>>
>>Thanks!
>>
>>Alex
>
>Yes, but if you have the Cancel property on your CommandButton set to .t., it shows up to LASTKEY() just like < Esc > was pressed.
DUH! Thanks Craig and Fred!!!
Alex
Low-carb diet not working? Try the Low-food diet instead!