What VFP You are using?
>Hi
>
>Thanks for replying. It is not working for me. It gave syntax error. Then I adjusted quotes. But now it says "invalid input mask" at run time. I am using it as ..
>
>thisform.Grid1.Column3.DynamicInputMask = "IIF(EMPTY("+thisform.Grid1.RecordSource + ".phone),'','@R (###)###-####')"
>
>
>column3 is grid column with phone #
>
>phone is the name of field in table(query)
>
>Thanks
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.