G
G. Stoynev
I can't seem to be able to prevent a Crystal Reports formula to
evaluate an expression when the report contains no records to show.
Here's the formula (DateTransferred is a DateTime column):
If IsNull({MyReportDataSet.DateTransferred}) Then
" " //empty string
Else
If ({MyReportDataSet.DateTransferred} = CDate("1/1/1900")) Then
" " //also pring an empty string - 1/1/1900 means "no date was
selected"
Else
ToText({MyReportDataSet.DateTransferred}, "MM/dd/yyyy");
It looks that even if IsNull returns true, Crystal is still trying to
evaluate this line
If ({MyReportDataSet.DateTransferred} = CDate("1/1/1900")) Then
which is causing the error "A date is required here" to be displayed.
I tried changing Report Options -> Convert DBNull to Default, bub that
didn't help.
I'd appreciate any help/advice
Using Crystal that comes w/ VS 2005
evaluate an expression when the report contains no records to show.
Here's the formula (DateTransferred is a DateTime column):
If IsNull({MyReportDataSet.DateTransferred}) Then
" " //empty string
Else
If ({MyReportDataSet.DateTransferred} = CDate("1/1/1900")) Then
" " //also pring an empty string - 1/1/1900 means "no date was
selected"
Else
ToText({MyReportDataSet.DateTransferred}, "MM/dd/yyyy");
It looks that even if IsNull returns true, Crystal is still trying to
evaluate this line
If ({MyReportDataSet.DateTransferred} = CDate("1/1/1900")) Then
which is causing the error "A date is required here" to be displayed.
I tried changing Report Options -> Convert DBNull to Default, bub that
didn't help.
I'd appreciate any help/advice
Using Crystal that comes w/ VS 2005