Many thanks, Excavator!
Your help is much appreciated.
As you can see I am relatively new to this forum. How do I officially thank you for your help? By that I mean how can I thank you in such a way that your number of "thanks" increases?
Thanks again! You know, I could've looked at that code for months and months and not realised my mistakes.