• Thanks for that. I can use that in my SQL script to get the result and display from their. Saves messing about in Reporting Services.