This function does not process display names. Please see the examples that are in the UDF header. I think that you would have to use ADO to query for the display name.


If you run these examples you will see what the UDF does.Code:

$DN = TranslateName (3, "", 3, "@Domain\@wksta$", 1)
? "DN = " + $DN[0]
? "Error = " + $DN[1]
? "ErrorText = " + $DN[2]

$DN = TranslateName (3, "", 3, "@LDomain\@userid", 1)
? "DN = " + $DN[0]
? "Error = " + $DN[1]
? "ErrorText = " + $DN[2]


_________________________
Home page: http://www.kixhelp.com/hb/