Nice one, guys! It's working now - it wasn't the only problem (there were other bugs I had to track down) but it solved the initial error of the script ending.

Much obliged to you all...

Jim