• Works great. I put the code into a stored procedure to execute nightly.

    Many thanks!