Hi Mike,
>I used your return 0 in the valid of the text box, but how do I let the user get out if they want to cancel and don't want to enter data. I have a cancel button but the text box will not allow me to exit because it keeps returning the 0 to keep me there.
The code has to be conditional, example:
if lConditionPassed
return .t.
else
return 0
endif
Does this make sense?