I've written an ldap query to retrieve an object using an
EmployeeID. In same cases, user's have more than one
account and I only want the account that is not hidden in
the Outlook address book. Unfortunately, when I try to
add this condition to the query, it always returns zero
results. I'm guessing that the problem is that the
attribute is null in cases that the account is not hidden
but I can't find the correct syntax for the filter.
strQuery = "<LDAP://serverName/dc=myCompany,dc=com>;(&
(employeeID=" & EmployeeID & ")(!