Thanks Richard. Now that you shown it I can see where I went wrong. I did not realise you can have an if statment within an if statment. I'll give it a try and thanks for your patenice

admad