• That was bulls eye. You were right

    Thank you

    I shall try and rewrite the queries and avoid the the multi-statement UDF

    Thank you once again