>Thanks
>Works perfectly!
>
>It seems that there would be some way to do this and keep all the code in the report definition though.
Hi Dave,
Glad you got it working. I remember I tried several other ways, but I always ended whith detail counting. This solution seems to work fine, even if it's not elegant enough. You should not forget to ship this function, place it in the same directory, where your report is, make this directory in search path and some other hassles...
If it's not broken, fix it until it is.
My Blog