Thanks all, that was useful. I will be more careful when using IFN and IFC in future, and may just stick to good old IF THEN ELSE syntax!