In reply to Aad van Strien.

Right. I mention that in the last paragraph. Your SELECT statement is equivalent to using IF/ELSE IF/ELSE IF/ELSE.