Hi,
i am trying to lookup "distinct" title's in AD; however, i had no luck. i am using....
...which is fine, but it grabs all when i want a distinct list..ie: if returned...
title:
Worker bee
Mgr
Mgr
Worker bee
Operator
i want...
Worker bee
Mgr
Operator
i am trying to lookup "distinct" title's in AD; however, i had no luck. i am using....
Code:
Set oRs2 = oConn.Execute("SELECT name, title, physicaldeliveryofficename " & _
"FROM 'LDAP://" & getUnitPath & getDomain & "' " & _
"WHERE department='" & getDepartment & "' AND physicaldeliveryofficename='" & aData(0,i) & "' ORDER BY title")
...which is fine, but it grabs all when i want a distinct list..ie: if returned...
title:
Worker bee
Mgr
Mgr
Worker bee
Operator
i want...
Worker bee
Mgr
Operator