Dear all,
I have a question about formula in crystal report.
I have created a cross tab. In the group field, the null value will display blank.
How can it display other text if it is null instaed of blank?
Thanks alotHi,
Right Click the summary field, select "Format Field", go to "Common" Tab.
You can find X-2 for "Display" String option. Click that button and write the following formula
If IsNull(CurrentFieldValue) = True then
0.00
else
CurrentFieldValue
This will display 0 if that field contains Null and the actual value if it is not null.
Hope this will work.|||Hi
Thank you for your reply
I have modify the formula from you and place it in the right place.
However, it doesn't work.
The blank group title has not be changed to the text that I expected.
Do you have any suggestion?|||Is that field is blank or null? If it is blank, just check with blank space instead of checking null.|||I have checked both of it
but still cannot work
Here is my code
for the null value:
if IsNull({table.field}) then
"Unspecific"
else
CurrentFieldValue
for checking space
if {table.field}=" " then
"Unspecific"
else
CurrentFieldValue
both of them are shown nothing is the cross tab field
Do u have any other suggestion?
Thanks for your help!!!!|||I have an other question to ask you
I want to change the subtotal to other currency
and the exchange rate is store in other table
I don't know how to get the exchange rate for each of the countries
How can i do this by the formula?|||you are so nice and very helpful~~~|||Thanks,
For the first question, Hope you have written the formula in "Display String" (Format)section.
Try to check CurrentFieldValue instead of {table.field}.
I checked with zero, it worked.
For the second question, if you have any linking field like country code, country name use that field to link with the other table which contains the exchange rate. Write the formula by using that field.|||Thank you for reply!
I also check it with non-null value
it also works!
however, when I check it with null value, it shows nothing~
I have check it with sql statement, it is null value in the database
How come this happens??
Thanks~|||I have a new question again.
The crystal report have not show the record that is zero
How can I show the zero record??
Thanks very muchsql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment