I am trying to extract user information from my Active Directory server using ADODB..
Everything works well except for 1 of the attributes which id UID if am using the following statement:

dim strUID
strUID=iff(isnull(adoRecordset.Fields("UID").value),"",adoRecordset.Fields("UID").value)

At Runtime, as soon as there is a non Null value, I receive the following message:
Run-tim error '13': Type mismatch..

I have tried to debug.print but I receive the same error message.

Help would be greatly apprieciated.

Robert