Am working in Crystal Reports 10
I am trying to display on my report the last medicine record. I got a formula that goes in the Report Select|Group for doing that off this forum but the problem is that some of the records have a blank or I assume Null date. Using this formula works except that these blank/Null records don't show up:
I tried using this:
But get an error that says "A date is required here" and the statement after the Else is highlighted.
Any suggestions on how I display the last record or blank/Null record?
TIA!
~RLG
I am trying to display on my report the last medicine record. I got a formula that goes in the Report Select|Group for doing that off this forum but the problem is that some of the records have a blank or I assume Null date. Using this formula works except that these blank/Null records don't show up:
Code:
{@StartDate} = maximum({@StartDate},{Drug.Drug_Label})
I tried using this:
Code:
If IsNull({@StartDate}) then
{@StartDate}
Else
{@StartDate} = maximum({@StartDate},{Drug.Drug_Label});
But get an error that says "A date is required here" and the statement after the Else is highlighted.
Any suggestions on how I display the last record or blank/Null record?
TIA!
~RLG