The select statement at the beginning - I had to introduce another section saying if in the prime & pannd group - do this.

Took me a while to figure out I must admit!!!!

Also put a return after each group telling the script to end.

The dummy code that MightyR1 gave me was a big help as was the code Lonkero sent to me!! [Big Grin]

[ 24 July 2002, 15:25: Message edited by: Cazzjh ]
_________________________
Cazzjh