In the report, set the section's can shrink property to yes.
Set each control's can shrink property to yes.
Labels don't shrink so if you have labels in the section, you will need to add
VBA code to set the label's visible property to No when the associated control
is null.
In the format event of the section you would have code like
Me.Address2Label.Visible = Not(IsNull(Me.Address2))
Me.EmailLabel.Visible = Not(IsNull(Me.Email))
Another option to handle labels is to incorporate the label caption into the
the associated control and delete the label. The control's source would become:
="EMail: " +
If you use this approach, you will have to ensure that the control's name is
NOT Email, but something like txtEmail. In other words, the control's name
cannot be the same as any field you are using.
John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
[QUOTE]
I am trying to print a directory and have some entires that have many
fields/data and others where that specific info is not available. How can I
hide those fields that have no info available for some but print when the
info is present?[/QUOTE]
[/QUOTE]