I thought I'd copied the statement faithfully but, prodded by your comment, I went back and realised I hadn't included the original = sign. Now that I have, it works. Doh! (Well, in my defence I can at least plead mitigation due to the absence of any guidance on using IIf in the help files.)...