Hello,I have an agent based on a request system that emails me to add users to a blackberry server. I have three servers and split the load based on last name. For example last names starting A-K are on one server. L-R on a second and S-Z on a third. I am looking to change my notification script however so that it retrieves the first letter of the person’s lastname (@name(cn] from the address book) and based on the lettering above structures the email sent.
Any ideas where to begin?
Subject: Name Search
You could split that name, take the last position of the vector, and so take the first character [e.g. firstChar = Left(lastName, 1)] and so include your condition.
That’s an idea. Hope this helps.
Subject: RE: Name Search
Thanks. I understand with Left and StrRightBack I can get the first letter of the last name. I do want to keep from having 26 case statements however
Case A
Message
Case B
Message
etc…
Is there a way to have it where I could have
Case A=L)
Message?
Thanks Again.