Thanks Steve.
>I think that is better than setvar(). Jeff, be sure to set c1 to reset on the field2 group.
>
>>>I want to Sum field1 but only when field2 changes.
>>
>>Create Report Variables:
>>Name Initial Value Value to Store Calculate
>>c1 0 0 Count
>>s1 0 IIF(c1=1, f1, 0) Sum
--sb--