I changed my code based on what you said and it now works perfectly, thank you so much - this has been a head ache for ages