Thanks, Peter. I must have been having a bit of the stupids, your example worked fine for me too. Back to the salt mines!