Hello all,
I am creating a Crystal 8 report from a SQL2K database and having problems displaying a date field when the value is NULL in the db. The formula is included as part of a larger fixed width string. I need it to display Null or blank dates as " " and valid dates to display as yyyyMMdd.
When the formula is :
If IsNull({EInfoAll.birthDate}) or {EInfoAll.birthDate} = date(0,0,0) Then " "
Else
ToText({EinfoAll.birthDate}, 'yyyyMMdd')
The Null Date displays as -4714123
When the formual is :
If IsNull({EInfoAll.birthDate}) or {EInfoAll.birthDate} = date(0,0,0) Then
" "
Else
ToText({EinfoAll.birthDate})
Null Date displays as " "
I need this field formatted as yyyyMMdd. I can't click on the field and use the format option, as this field is included in a larger fixed width string (doesn't appear on the report by itself). I have the Crystal Report options set to convert NULL fields to default values.
Any help would be appreciated.
Thanks !
I am creating a Crystal 8 report from a SQL2K database and having problems displaying a date field when the value is NULL in the db. The formula is included as part of a larger fixed width string. I need it to display Null or blank dates as " " and valid dates to display as yyyyMMdd.
When the formula is :
If IsNull({EInfoAll.birthDate}) or {EInfoAll.birthDate} = date(0,0,0) Then " "
Else
ToText({EinfoAll.birthDate}, 'yyyyMMdd')
The Null Date displays as -4714123
When the formual is :
If IsNull({EInfoAll.birthDate}) or {EInfoAll.birthDate} = date(0,0,0) Then
" "
Else
ToText({EinfoAll.birthDate})
Null Date displays as " "
I need this field formatted as yyyyMMdd. I can't click on the field and use the format option, as this field is included in a larger fixed width string (doesn't appear on the report by itself). I have the Crystal Report options set to convert NULL fields to default values.
Any help would be appreciated.
Thanks !