I am trying to use an unbound text box in a report to display comments from a query. Sometimes there are no comments to display. In that case I want to display the message "No Comments were made".
First I used this:
IIf(IsNull([not_cur_there]), "No Comments were made", [not_cur_there)
When there were comments, they were returned but when there weren't any, nothing was returned at all. I looked closer at my query and began to suspect that the values were not NULLs but zero-length strings.
After some searching I found this statement:
IIf(IsNull([not_cur_there]), "No Comments were made", Foramt([not_cur_there], "@;\No Comments were made")). This is supposed to return "No Comments were made" if the field is NULL or zero-length. I, however, get this:
#Error
I add this to the detail section of the report. If I add the text box "not_cur_there". Then it will return "no comments were made." But if there are comments, then it will return everything in duplicate.
I am at the end of my wits.
Please, help
First I used this:
IIf(IsNull([not_cur_there]), "No Comments were made", [not_cur_there)
When there were comments, they were returned but when there weren't any, nothing was returned at all. I looked closer at my query and began to suspect that the values were not NULLs but zero-length strings.
After some searching I found this statement:
IIf(IsNull([not_cur_there]), "No Comments were made", Foramt([not_cur_there], "@;\No Comments were made")). This is supposed to return "No Comments were made" if the field is NULL or zero-length. I, however, get this:
#Error
I add this to the detail section of the report. If I add the text box "not_cur_there". Then it will return "no comments were made." But if there are comments, then it will return everything in duplicate.
I am at the end of my wits.
Please, help