I have these fields that sometimes return null values and I want to write something when they are null.
So I wrote this formula in the display string of the format editor for the field
if ISNULL({client_updates.client_notes}) then "There is not comment"
else {client_updates.client_notes}
I get no error on it but it returns nothing. There is still a blank field. I've tried clicking Convert Database null values to default in report options or in the formula editor changing from exceptions for nulls to default value for null and then changing my formula to say
if {client_updates.client_notes} = "0" then "There is not comment"
else {client_updates.client_notes}
But I still get blank fields.
I don't know if it helps but no matter what I try I still get the correct value returned when it is not null so that's working.
What am i doing wrong?
Thanks
Request clarification before answering.
Hi Kurt,
In the formula editor select 'Default Values for Nulls' and then modify the code to:
if {client_updates.client_notes} = '' then "There is not comment"
else {client_updates.client_notes}
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.