Issue with IIf expression

  • I'm new to all this so I apologize in advance.

    I have the expression =IIf(Fields!COMPDATE.Value="Not Complete","Not Complete",DateDiff("d",Fields!ENTDTE.Value,Fields!COMPDATE.Value))

    What I want is for it to return Not complete if the value in Compdate = Not complete otherwise do the datediff however I get #Error when Compdate = not complete. What gives?

    DateDiff part works fine, confused why the other result is an error. Thanks

  • Isn't COMPDATE a date? How can it have a value of Not Complete?

  • It is a date, however, when the call is not complete date is 01/01/1900. We remove that date with a isnull command and set it to "Not Complete" for reporting purposes.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply