Yes!! - that has solved it. Thankyou for sticking with me on this one. I really appreciate all the help here. Works perfectly now.
This is what that code looks like for anyone else trying to solve this