Thanks, that's so much simpler!  I should have asked you before wasting over an hour on the other way....