David, would you mind trying the clientname() udf again? I added your reg setting to it, and it would be good to know if it at least works for your environment.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=205965#Post205965