Shrinkable Label

T

Terry

I have a report (Purchase Order) that has multiple items - 2 lines per item.
The 2nd line is a notes feild for the second item, and is labeled "Item Note
1", "Item Note 2", Etc. I have the text box attached to that label set to
"can shrink - yes" so that it disappears if empty. The Label has no such
"can shrink" setting, so it even if the text box is empty and shrinks, the
label remains. Is there a way to remove the label also if the attached text
box shrinks so that the whole line condenses?

Thank you,

Terry
 
M

Marshall Barton

Terry said:
I have a report (Purchase Order) that has multiple items - 2 lines per item.
The 2nd line is a notes feild for the second item, and is labeled "Item Note
1", "Item Note 2", Etc. I have the text box attached to that label set to
"can shrink - yes" so that it disappears if empty. The Label has no such
"can shrink" setting, so it even if the text box is empty and shrinks, the
label remains. Is there a way to remove the label also if the attached text
box shrinks so that the whole line condenses?


Add a line of code to the memo field section's Format event.

Me.memotextbox.Visible = Not IsNull(Me.memotextbox)
 
T

Terry

Thank you,
That works to hide the box, but I want it to actually shirnk so that the
entire detail section condenses up for all the records that are empty
Any other ideas?
Terry
 
M

Marshall Barton

Then you also need to set both the text box and its
section's CanShrink property 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