this.ReadOnly = UPPER(ALLTRIM(EVAL(thisform.Grid1.RecordSource+".Nam"))) == 'PRIVATE'
>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.
>
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.