• Thank you both, I've implemented the code and it works perfectly. I also now understand why the query wasn't recognising the SELECT Statement.

    Many thanks!