>I placed some field validations in my valid event of a user entered text field. I give the user an cancel button just in case of those times when they say "hey I'm in the wrong place." But everytime they press teh cancel button, the valid event still takes place and it comes back with a message saying an entry in required! How can I prevent it from doing that but keep the code in my valid event?
>
>Jeff T.
Try setting the Cancel property of the button to .T. Then in the Valid of the textbox put:
IF LASTKEY() = 27 && Escape
RETURN
ENDIF
Cancel property of the button should set LASTKEY() TO 27 ( Escape )
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.