Thanks Ken - and would love to update the environment but it's a far more extensive environment than just my virtual station on the server that will be required to run the code. The script this is derived from is part of a package deliverable for repeated use and unfortunately the deadline for the initial completion of the script for the procedure at hand is rather more pressing than a broadcast environment update would support.