Hi,

I've changed my code so that it is more like RaleTheBlade's and it's now working fine.

Thanks very much,

dlarkin77