>Has anyone come up with a good method that will
>allow a user to cancel an operation while they are
>on a field that requires entry.
>
>They have requested to add a new record.
>The user is then presented to a screen with X number
>of fields, some of which are required and in their
>VALID code states IF EMPTY(fieldname) THEN 'Field must
>be filled' ENDIF
>
>but what if the user presses the CANCEL button, how do I
>know that they have touched the CANCEL button so
>as to let them out of the required field and let the CANCEL
>valid be fired off.
>
>Any suggestion please.
>
>Bret
we place the test for leaving a required field in the save button. it's a bit too detailed for here (checking all objects to see if they require an entry, warning if left empty and returning to first object failing), but if you want more, let me know.
if you leave the test in the field's valid, you can't leave until something valid is entered...