Shrink when not visible (not when null)

G

Guest

I have a field on my report that has code that makes it visible based on the
value of another field in the report. This works fine.

In addition to this, I would like that when the field is not visible, the
section it is in will shrink, so I do not have the extra blank lines in my
report.

I have my CanGrow and CanShrink properties set to yes, but since it is only
invisible, not null, it doesn't work.

Any ideas?
Thanks,
Diane
 
G

Guest

You should be able to change the control source to something like:
=IIf([Married]="T",[SpouseName],Null)
Make sure you change the name of the text box and set it to Can Shrink.
 
M

Marshall Barton

diaare said:
I have a field on my report that has code that makes it visible based on the
value of another field in the report. This works fine.

In addition to this, I would like that when the field is not visible, the
section it is in will shrink, so I do not have the extra blank lines in my
report.

I have my CanGrow and CanShrink properties set to yes, but since it is only
invisible, not null, it doesn't work.


A text box will shrink if it is invisible or if its value is
either an empty string or Null.

The section containing the text box will also shrink if all
the controls (if any) in the same horizontal "band" as the
text box text box also shrink.

Make sure that you have set BOTH the text box's and its
section's CanShrink to Yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top