Ok, try the simple thing first:
this.colNam.readonly = upper(alltrim(MyTable.Nam))="PRIVATE"
substitute myTable with the name of your table. And remove all textboxes values assignments. Why do you do it?
>hi ,
>
>i try but still,
>
>How long is your Nam field? 50 characters.
>Add spaces at the end of "PRIVATE" to be the same length as your NAM field.
>you mean "PRIVATE"+43characters.
>
>this.ReadOnly = ALLTRIM(EVAL(thisform.Grid1.RecordSource+".Nam")) == 'PRIVATE '
>
>
>i try ,mr.Borislav Borissov code, still
>
>this.ReadOnly = ALLTRIM(EVAL(thisform.Grid1.RecordSource+".Nam")) == 'PRIVATE'
>
>
>thanks.
>
>
If it's not broken, fix it until it is.
My Blog