Thanks for the suggestions.
On the report that I'm referring to above this works fine. I actually put those details in under the Vba section where we were also debating this one.
However I'm trying to do it in another report within the same database and this one won't work.
Again it should be simple.
the report is based on a query finding records between 2 dates where a boolean field is true. If there are records then it displays them fine. However what I want to have is if there are no records to display then it instead displays a label to say "no records to display".
I have the label in the same detail section, property set to not visible, and then I'm using the following code in the OnFormat....
----code----
If isnull(me!lodgement_No) then
me!label.visible = true
else:
me!label.visible = false
end if
----code----
no matter what, it will not display the label.
also if I try to check for isempty or ="" then I get the error message:
"You entered an expression that has no value....blah blah blah"
Please can someone help me figure this out!
On the report that I'm referring to above this works fine. I actually put those details in under the Vba section where we were also debating this one.
However I'm trying to do it in another report within the same database and this one won't work.
Again it should be simple.
the report is based on a query finding records between 2 dates where a boolean field is true. If there are records then it displays them fine. However what I want to have is if there are no records to display then it instead displays a label to say "no records to display".
I have the label in the same detail section, property set to not visible, and then I'm using the following code in the OnFormat....
----code----
If isnull(me!lodgement_No) then
me!label.visible = true
else:
me!label.visible = false
end if
----code----
no matter what, it will not display the label.
also if I try to check for isempty or ="" then I get the error message:
"You entered an expression that has no value....blah blah blah"
Please can someone help me figure this out!