I have a report where charater data like "NULL" to be displayed for number data types.
Ex: - If and ID is blank in the database then display NULL in the report. ID is of Number data type in Database.
Need to display the same for Date values too.
If the start and End dates are blank then display NULL.
How can this be achieved through formula.
I tried the following
StringVar x: {rpt.planID};
If IsNumeric(x) Then {rpt.planID}
Else "NULL"
Didn't help.
StringVar x := cstr({rpt.PlanID});
If IsNull(x) Then "NULL"
Else x
This also didn't help
Also tried with ToText function couldn't get through.
How to achieve the above functionality using Formule to display Character data "NULL" for Number & Date data types in crystal Reports. I am using Crystal reports XI.
Thanks,
RP
Ex: - If and ID is blank in the database then display NULL in the report. ID is of Number data type in Database.
Need to display the same for Date values too.
If the start and End dates are blank then display NULL.
How can this be achieved through formula.
I tried the following
StringVar x: {rpt.planID};
If IsNumeric(x) Then {rpt.planID}
Else "NULL"
Didn't help.
StringVar x := cstr({rpt.PlanID});
If IsNull(x) Then "NULL"
Else x
This also didn't help
Also tried with ToText function couldn't get through.
How to achieve the above functionality using Formule to display Character data "NULL" for Number & Date data types in crystal Reports. I am using Crystal reports XI.
Thanks,
RP