I'm happy to help - and I'm impressed that you managed to sort it out yourself based on the advice given (most threads like this tend to go on for a while, as people tend to miss one or more items in their code!).


As you now have it sorted out, could you please do us a little favour, and mark the thread as Resolved?
(this saves time reading for those of us who like to answer questions, and also helps those who search to find answers)

You can do this by clicking on "Thread tools" just above the first post in this thread, then "Mark thread resolved".