I have the following code setup to run code based on a certain condition:
I'm getting a type mismatch error against the If-Then line. My "rs2" recordset is populating data from Active Directory. I'm trying to figure out how I can say "if the objectClass in rs2 = what is provided from the classOne string, do stuff"....
Code:
Dim classOne as String, rs2 as ADODB.recordset
classOne = "top person organizationalPerson user"
If (rs2.Fields("objectClass").Value = classOne) Then
<DO STUFF>
End If