>>>But, How do you define a variable that counts
>the
>>>number of distinct values myGroup_id takes at
>the
>>>end of the report?
>>
>>i can think of a couple of ways to achive this
>>
>>1. calculate it befoe the report and print that
>>var inside the report
>
>The one i didn't want to do :)
>
>>2. add a variable to the report and use the On
>>Entry expression
>>to add 1 to the new var. (eg.
>>lnCounter=lnCounter+1 :) )
>
>I tried this one, but it seems like expressions
>don't accept assignation of values (it doesn't
>give an error, but the variable is just not
>incremented), or maybe i did something wrong
>(wouldn't be the first time :))
>
>Thanks for you reply Arnon
If nothing else, run your routine from a UDF (to a PRG) in a report field.
Tom