Hi Mathieu,
Thanks for your reply. I had noticed the 2 variables that were the same, but as the script had been working I decided not to mess with it. I've changed the variables and I'm currently doing to some testing between other work.
Do you know how I can have this script run within a date range, for example 01 June 2014 – 30 June 2014. I'll be moving on to that next but If I can get a head start it will help.
Regards,
John.