Hi, I am trying to conditionally display a string if the field is blank or null. We have a database in which the users enter in their comments. If there is a comment, then the data is shown. If there are no comments, they currently have to type in "No comment". What I would like to have is the report to automatically display "No Comment" if the field is left blank.
Currently the table is auto populated so that there is a record created for each commentable field. The blank comment is always numbered 0.
I have tried isnull(comment.field) and trim(comment.field)="", neither of which have displayed the string. I have also tried if bullet.num = 0 then "No Comment" - that doesn't work either.
Any ideas?
I am using CR9 and DB2
Currently the table is auto populated so that there is a record created for each commentable field. The blank comment is always numbered 0.
I have tried isnull(comment.field) and trim(comment.field)="", neither of which have displayed the string. I have also tried if bullet.num = 0 then "No Comment" - that doesn't work either.
Any ideas?
I am using CR9 and DB2