Another great suggestion!
I did display the border of all the controls, and I see that Damian is
correct. The white space I had between controls remains as the controls
move up.
So now the question is, how do I program in the proper amount of white
space within the control itself?
For example, if the control source for the control is: =[Control 2], I
would think I could do something like
=Chr(10) & [Control 2]
This does in fact put a new line within the control, but the new line has
a box (a character) when the value of the control is displayed on the
report.
The value of the control in this case displays as follows (where x is a
box):
x
This is the data
Why is the x (box character) showing?
Bernie
Duane Hookom said:
Try display the border of all controls so you can more easily
troubleshoot your report. If your control value is actually null and it
is set to Can Shrink then it should disappear.
--
Duane Hookom
MS Access MVP
Hi bw,
Remember to set the can shrink value of the actual section your control
is
in to YES.
But the point is that if you have controls with white space between
them,
that white space will remain even if the controls shrink... so your
"equally
spaced" controls will go, but the equivalent amount of white space
between
them will remain.
Hope this helps.
Damian.
:
bw wrote:
I'm not sure I understand what happens when one sets the controls,
and the
Section Header Can Grow and Can Shrink properties to Yes.
Example Report
Control 1 Here
Control 2 Here (when control 2 has data, control 3 will have
data)
Control 3 Here
Control 4 Here (when control 4 has data, control 5 will have
data)
Control 5 here
Control 6 Here
Control 7 Here
This is the way my report looks when all controls have data.
As an example of what I'm trying to understand, I want to know where
Control
7 will appear if Controls 2,3,4,5 and 6 are all null (wouldn't it
take the
place of Control 2 on the report?)
How does Control 7 move up (and to where) as the other control
values
become
null?
What happens to the spacing I have set between Controls (like
between
Control 1 and Control 2?)
The spacing between controls remains regardless of shrinking
controls. So control 7 would move up by the amount of space
reclaimed from the Null controls, but all the spacing
between controls would still be there.
A logical exception to controls "moving up" is if there are
other nonshrinking controls to the left or right of the
shrinking controls. Another complication is that if the
bottom of a shrinking control partially overlaps the top of
another control, the other control can not "move up".
Does that help your understanding?
--
Marsh
MVP [MS Access]
Yes it does! I guess I have a problem elsewhere, but I can't seem to
locate
what the problem might be.
I have checked carefully, and I have no controls that touch or share
the
same space with other controls.
I'm glad you confirmed that controls move up in order, to replace
those Null
controls.
I have aligned all controls to the left and spaced them equally
(visible
spaces), but I still have the same problem, which is: the Controls
don't
move up all the way.
Assume all controls before the one in question are null (Control 1 is
never
null).
Example1: Control 4 should move up to fill the space of Control 2. It
only
moves up to fill the Control 3 position.
Example2: Control 6 should move up to fill the space of Control 2. It
only
moves up to fill the Control 4 position.
Example3: Control 7 should move up to fill the space of Control
2...AND IT
DOES!
Do you have a suggestion as to what may be wrong with my controls?
Thanks for your help...
Bernie