And sorry again. It worked very well. I had missed a bit of your sql out. Thanks for your help with this.