steve you are still missing the endif before:
if INGROUP("STAT")

I know you can get frustrated but, ain't that life...
_________________________
!

download KiXnet