Try using TranslateName() UDF to return the distinguuished name of the user object. Then use the DN in the query instead of the sAmAccountName.
_________________________
Home page: http://www.kixhelp.com/hb/