>hi,
>how can i avoid valid from any object (textbox) in a very simple way if the record is cancelle or not saved.
Put this in your Valid code:
IF LASTKEY() != 27
ENDIF
Make sure you set the Cancel property of the Cancel command button.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer