Borislav
I think the whole point is that he doesn't want to return .F.
>You may set the InputMask of that TextBox to "Y" it allows to user to input ONLY "Y","N", "y", "n". If You want to validate the record put the check of the whole form in some separate method i.e. thisform.AllOK(). In QueryUnload event of the form put:
>
>IF .NOT. ThisForm.AllOk()
> NODEFAULT
> RETURN .f.
>ENDIF
>
>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.