I have checked the pasted SQL code, for some unknown reason when I copied and pasted it into SQL view, it replaced the first and last brackets, with square brackets, having changed these back to how your example shows, it now works fine.
Thanks very much, I really appreciate you're help. :)...