Thank you all very much. Firstly for providing an answer that does exactly what I require. But also for the hints on the naming conventions and the explanations of how I was going wrong. Thanks again, b