Hi
I'm using VB 2005 Express to create a small Directory search program four our company, to allow users to look up phone numbers etc. from Active Directory.
I've been able to search for contact details, but I would like to pull out a list of Departments and build them into a menu.
I can list the departments, but I get all of them when I just want to get 1 instance of each. If I were using a SQL DB then I would use the GROUP BY function, but I cannot find an equivalent in the DirectorySearcher object.
Can anyone suggest a way I can get a list of Departments out of Active Directory, with each Department name being listed just once?
====================
Mr Shine him diamond
I'm using VB 2005 Express to create a small Directory search program four our company, to allow users to look up phone numbers etc. from Active Directory.
I've been able to search for contact details, but I would like to pull out a list of Departments and build them into a menu.
I can list the departments, but I get all of them when I just want to get 1 instance of each. If I were using a SQL DB then I would use the GROUP BY function, but I cannot find an equivalent in the DirectorySearcher object.
Can anyone suggest a way I can get a list of Departments out of Active Directory, with each Department name being listed just once?
====================
Mr Shine him diamond