Return !(this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5)>I have tried this code in a textbox's interactive change event but focus goes to the next textbox :-( Reason I am going this route is because if the texbox is empty, user is allowed to modify.