Your script at first glance seems to be processing your groups as you have instructed it to do. You used a SELECT...CASE...ENDSELECT construct. Only one case command will ever execute (see the manual). Use the SELECT..CASE structure when you have mutually exclusive events you wish to process.
_________________________
Home page: http://www.kixhelp.com/hb/