Thanks John. Apologies been out of the office the last week so not had chance to respond. I managed to take your solution and tweaked it slightly to give me the desired result.