Help checking date range

  • I need to do this but can't find the syntax:

    IIf(Fields!EnteredDate.Value is in current month , Cint(Fields!PC.Value), CInt(0))

    I need the syntax for this for SSRS 2005 (Reporting Services)

  • Hope the following helps u out:

    =IIF(Format(Fields!EnteredDate.Value,"MM") = Format(Now,"MM"), Cint(Fields!PC.Value), CInt(0))

  • FYI... the above code will work but it assumes the dates are both in the same year.  I'd suggest validating the years as well.

  • Thanks a lot!

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

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