To be completely honest, on the clientname UDF, I only posted the code. However, the code was created by other Kixtart.org members to accommodate getting the clientname from more than just RDP AND for when it is not so simple as to get it the way you are. If you look at the code, the very first test is the way you are doing it.

There is nothing wrong with the way you are doing it, until one day it doesn't work. Then you might have a need for this UDF. \:\)

By the way, please put your code inside the Code Tags. Its the "#" button above the box where you type your message. (Normal Reply, not the Quick Reply box below)