Your description in the previous post is NOT what your code does.

You have mutually exclusive CASE statements: one that checks for membership in two groups and maps two drives and a CASE statement that check for the membership of a single group and map one drive.

I think that the INGROUP that checks both groups is failing and the one that checks one group is succeeding. The test code will tell us if that is the situation
_________________________
Home page: http://www.kixhelp.com/hb/