"REVISED"
It's important to note that the users should be allowed to edit the textbox if: the following conditions:
-textbox is blank
- textbox has cordate value in it
- not be allowed to edit if value other than cordate.
- Any other date than cordate is NOT valid
-a fine mess
>In valid:
>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.
>>
>>IF this.Value<>cordate AND LEN(ALLTRIM(this.Value)) =5
>>this.setfocus
>>EndiF
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."