• Thanks that is excactly what I was looking for. I am not familiar with cross apply,but look forward to using it.

    Cheers!