• I would like to but it is not necessary, because we have some misunderstanding. I placed the post in the wrong forum (being reporting services) with the effect of replies like yours. The fact is that I am not building a report so the code I use in queries is a little bit different then the code in reports. My post belongs to the sql server newbies section and I asked the moderator to move it to that forum.

    Sorry for the inconvenience.

    Robert