I'm getting the error "Invalid Procedure Call or Argument" with the following piece of code:
I've done some research and tried adding in a check to ensure "strRole" > 0, which I also manually confirmed, but no dice. I have been able to figure out it seems to occur when I include the "- 9". My goal with this is to remove the first 9 characters from the strRole string.
Code:
replaceLDAP = Right(strRole, (Len(strRole) - 9))