I am querying Active Directory from VBA which returns a recordset.
I access the values returned in the recordset "rs" per the code below:
Set rs = cmd.Execute
adUser.Add "givenName", rs.Fields("GivenName").Value
adUser.Add "sn", rs.Fields("sn").Value
However one of the returned values, has the result in a nested "value" and I can not work out how to access the returned value. The ObjectWatch shows it like this:
I tried:
rs.Fields("postOfficeBox").Value(Item(0))
The value returned I am trying to access is Variant/String.
Similar question here without answer: VBA: Accessing Variant/String Array value