>Thank Cetin, it works great, One more thing: What I have to do when need to calculate a column based on the value of thow field in the Grid instead a variable, always considering that the value field could contain different values. Example:
> iif(field4 ='K',field3 = field2 * 2.205....)
>
>These in Grid expresions like this:
>
>Thisform.GridLiquidac.Libras.TxtLibras.ControlSource = ;
>'(DETAILS.Field3 * ' + iif(x,'1','2')+')'
>
>Thanks again.
>Carlos Burgos
Thisform.GridLiquidac.Libras.TxtLibras.ControlSource = ;
'( iif(details.field4 = "K",details.Field2 * 2.205,...) )'
Cetin