Thanks for your response Sturner and appreciate this is a substantial piece of work. Not asking anyone to re-write this for me but if you can point me in the right direction and I can attempt to do this myself.
Can find anything useful regarding turning a while loop into a set based insert.
Thanks Again.
Richie