Thanks for the help and sorry for the distraction. It was a case of leaping before looking. The transport is not local. The code was failing for a completely different reason. Cheers, Simon