• Thanks Chris!

    Looks like a solution.

    Works a treat in a code snippet.

    Have to apply it inside my sp, but I don't see why it shouldn't work.