>Hi Borislav,
>
>thanks, but I'd found a different solution:
>
>iif(crectype="IDCard", cIdCard, cName)
>
>I got rid of the quotes around the fields I wanted to group on and everything works great.
When the third type is introduced, get back to Borislav's message :).