Tom many thanks for all your time on this problem . I now see where I was going wrong
Iarryd thanks for the extra link
Colin