You are a star. It works just as I needed it to (until I mess it up with the next bit I have to do). The only thing I needed to do was add a "Global Nearly As Date" as the second line.
It is clear I need to find out about SUBs and the thing you added at the top "Global variable?
as a thing
" - where do you suggest I can find out about these in an easy to learn source? most of what I have learned is from examples on the net or this forum (thanks guys).
How many virtual beers do you think you can cope with? - here's one to get you started ...
I really appreciate thank you messages as a payment for solving issues :o)