Thanks Dean and Jonathan but Lee has come up with a most excellent solution.