No: that won't help if you don't want a 'label' for it.
If it is not shrinking that either
a) it is not null, or
b) something else needs the space and so it won't shrink.
It could be a zero-length string, or a space, or something else that doesn't
show but isn't null. Ask Access what it is. For example, temporarily add
another text box with a control source like this:
=([HomePhone] Is Null)
and see if it's true or false, or:
=Len([HomePhone])
If it's null, that should be blank. If it contains a number (even zero) then
it is not null.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Sue said:
Another question...
I have a field with no associated label (don't feel I need one) & have
indicated "can shrink" for both the field and the section of the report it
lies in. The line won't suppress when null, however. Can I use some
variant
of =IIf([HomePhone] Is Null,Null,"HomePhone") to solve this issue as well?
--
Thanks for your time!
Allen Browne said:
Right-click the label attached to the text box, and choose Change To |
Text
Box.
Then set the Control Source of the new text box to an expression like
this:
=IIf([City] Is Null, Null, "City")
using your field name instead of City.
Set the Can Shrink property of this new text box also.
Now both the original text box and the new one (the quazi-label) will
shrink
if the field is null -- provided there is nothing else overlapping it
vertically that requires that vertical space.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
How can I suppress fields that are null so that no space is utilized in
displaying my report? "Can shrink" isn't doing it...
How can I suppress a label in my report if the field it speaks to is
null?
Is there a way to concatenate the expression in the data field to
include
the
text within my label & then suppress the whole meshugenah if the data
is
blank.