OK,this should be simple, but it seems not to work.
I'd hoped err.number would be 0 if the user created without issue, or some other number if the create failed for whatever reason (duplicate, illegal characters, etc.) What I see is that err.number remains 0 regardless of whether or not the user gets created. Does this somehow make sense that I can't see?
Code:
err.clear
Set objUser = objOU.Create("User", "cn=" & strCommon & "")
If err.number = 0 then
I'd hoped err.number would be 0 if the user created without issue, or some other number if the create failed for whatever reason (duplicate, illegal characters, etc.) What I see is that err.number remains 0 regardless of whether or not the user gets created. Does this somehow make sense that I can't see?