>Fabio,
>
>For some reason I can not make it to work. I'm now trying a simpler query
Sometimes it just seems simpler to load a few cursors, index some fields and then use xBase to render the final parse. I have seen store procedures that were 100's of lines long - impressive - but I remember they took weeks to debug. I think simple is good!
Imagination is more important than knowledge