Ah, that was simple. I just had the code in the wrong place.

Thanks. smile