Many thanks J Livingston.
Thanks also for introducing me to the WITH statement.
I've utilised your code into my application and it seems to be doing the trick.
I had to do a bit of research to figure out what the WITH statement was doing but it was research that was well worth it.
I'm sure that I will find a use for this feature very soon.
Again thankyou for your help.(':-P');