Yes, sure. Can you perhaps send me the SQL so that I can debug this ?

Tom
Here is a portion of the script.
 
Thanks.

--
--------------
Cheers,
Jun