Hi I have 2 cells with dates in them (Say Cell A and Cell B). I would like to see if Cell A < Cell B. However, Cell A can be blank sometimes. In which I would like to just ignore the calculation.
It seems that SSRS evaluates everything, even if it is not in the logical steps for the function because any safe guards I code are ignored. Thus, I always get an #error when Cell A is blank.
I tried to write some VB code to do this calculation because I thought that would mitigate the problem. However, the same issue occurs with the following function:
Public Function CheckForError(ByVal Baseline as String, ByVal Current As String) As Boolean
If IsError(DateValue(Baseline)) Then
Return False
Else
Return True
End If
End Function
My expression is this:
=Code.CheckForSlip(ReportItems("Milestone_Baseline_Date").Value, ReportItems("Milestone_Current_Date").Value)
I am obviously expecting the function to return false instead of #error, but this effort does not work.
Can anyone help me with this?
Thanks
Checking the String Length does not return null