Solved Convert AD Property from Array to String in Access VBA

pooldead

Registered User.
Local time
Today, 14:10
Joined
Sep 4, 2019
Messages
136
I am getting a "Type Mismatch" error when I use Access VBA to pull the "description" field from an Active Directory group. I've done research and figured out this is because the "description" field is viewed as an array. Is there a function or tool I can use to convert this from an array to string?
 
I figured this out. Using the JOIN() function against the "description" field converts it to a string that is readable.
 
One dimensional array?
Code:
for i = 0 to ubound(yourArrayVariable) -1
   yourString = yourString & " " & yourArrayVariable(i)
next
 

Users who are viewing this thread

Back
Top Bottom