perfect thanks. Once I have worked out the rest of my code that goes in the do something bit I will report back and let you know how I got on :)