Thank you Moo, a good example of the hazards of copy pasting . I had been staring at it too long to notice.