$ 0 0 Hi Sid, There are no duplicated. I have debugged the code and everything seems okie. Just for a trial I have skipped one number ie 10 is Emp Group and I have put 12 as Emp Subgroup and now its coming up correctly...Just trial and error .