Set your data group to: EVALUATE(SomeVariable)
>Hi All,
>
>I was wondering if it is possible to create Dynamic Data Groupings in my report?
>
>I would like to store the field name into a Public Variable then use it as my Group Expression.
>
>
IIF(gnLevel1 == 1, &gcFieldGrp, "")
>
>
gnLevel1 && Public Flag that indicates if the grouping should be applied.
>
gcFieldGrp && Name of the field to base the grouping on.
>
>
gcFieldGrp = IIF(Something, "Pers_No", "Proj_No")
>
>TIA
>Mike
>
>P.S. VFP6 SP5