Well, apparently Radimus, NTDoc, and I all missed that discussion!

I'll leave it as it stands and up to Radimus to decide if he wants a separate UDF or is willing to update his UDF - without the IIF clause.

Regardless, this post should probably be moved to the Scripts forum now, given the number of revisions and amount of discussion.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D