Ok, that works!
Thanks very much Dico. I'm off to try the next step in this code: trigger only when the player is near.

Thanks again.