Hello all,
I am trying to add new formula field (let say result) in crystal report.
The value for result field is calculated based on fields already exist in database.
The fields which I use for calculation (lets say y and z) are declared as "nvarchar" datatype in sql. (fields may contain string/number/decimal value for different rows)
I need to calculate and show result value in report only if Y field is not null and Y,Z field contains numeric or decimal value. Else,then it not need to display anything in result field..simply it can show as blank in report.
Anyone help me to declare the condition. I tried it as below.
If ({tablename.Y} <> isnull) -->receiving error
then
NumberVar result; -->declaring variable to store the value
result:={tablename.y}+(8*({tablename.z}-{tablename.y}))
Else
{
}
I am trying to add new formula field (let say result) in crystal report.
The value for result field is calculated based on fields already exist in database.
The fields which I use for calculation (lets say y and z) are declared as "nvarchar" datatype in sql. (fields may contain string/number/decimal value for different rows)
I need to calculate and show result value in report only if Y field is not null and Y,Z field contains numeric or decimal value. Else,then it not need to display anything in result field..simply it can show as blank in report.
Anyone help me to declare the condition. I tried it as below.
If ({tablename.Y} <> isnull) -->receiving error
then
NumberVar result; -->declaring variable to store the value
result:={tablename.y}+(8*({tablename.z}-{tablename.y}))
Else
{
}