Chris,
In your combo do your checking this way
IF LASTKEY() = 27
KEYBOARD "{CTRL+A}"
RETURN .T.
ENDIF
>Hi all,
>
>I am using If lastkey() = 27, return .T., endif in the combobox valid.
>This works fine, however if the user hits cancel or escape and then the add or edit button, they can then click any field on the form and bypass the valid of the field where the cursor is positioned. This seems to be because lastkey() still equals 27.
>
>How can I clear lastkey() ?
>
>TIA
>Chris