>Hi Dragan,
>
>Thanks for the input
>
>The grid is used for data entry. Would that code still work for in this situation?
Just make the description's textbox.when() return .f. - as a function call it was not editable, with .when() returning .f. it would be inaccessible. Or you may just make that column readonly or something.
>Where would I put the call to replace all the descriptions in the grid?
Before the grid shows - so I guess at the latest in the grid.init(), if not as early as form.load() or wherever in between you open your tables.
If the description may change during the data entry, or you add records, then you'd need to add a record in the cursor too (with appropriate key value), and call the function to fill in the description, whenever any of the fields that the function uses change. Perhaps in the ARCC of the grid just
replace description with myfunction() in crsDescription