• Thank you both very much for your help, I've managed to crack it now - the code is very similar to what I wrote, but wasn't quite there with the logic. Cheers.