>we have a few forms here with several objects that are validated at a the object level.
>the problem is, is that the user cannot cancel without the validation running for the object the are on.
>
>if we put all the validation on the save, they don't find out about incorrect entries until they try to save.
>
>is there anyway we can keep the valids on the objects yet not have them run if the user hits cancel.
Gary,
Set the Cancel property of your Cancel button to .t. and then check lastkey() for a vlaue of 27 in the object valids like this;
* object valid
IF LASTKEY() = 27
RETURN .T.
ENDIF
* The rest of your valid code here