Hi Jason
Thank you so much for that, great service as always! I had to make one slight change in the WHERE clause, last bit changed to
OR (paramMembershipType3 = 5 AND MembershipType = 3))
so that the Admin type 5 can view user group 3. All working!