• Anthony,

    IIF is a new SQL-function in SQL Server 2012 and should work. Your suggestion though works like a charm in all panes so I think I'll use that one.

    Thanks a lot. Afterall is makes not much difference in which forum the post is dropped, only the confusion factor gets maximized. Sorry for that.

    Thanks again,

    Robert