Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keep position of pictures and labels from changing on report 1

Status
Not open for further replies.

bernie10

Technical User
Sep 13, 2004
219
US
Hi everyone,
I have a report that is generated from a form, and the text boxes on the report "can grow" depending on the amount of text entered in the form. The probelm is that when the text boxes "grow" it pushes other pictures and labels onto the next page of the report. Is there a way I can "hardcode" the position of the labels and pictures so they won't move even if the text boxes grow due to the input from the form?

Thanks,
Bernie
 
Problem is that I need them to be able to grow if there is a lot of text inputed; I just need the boxes to grow without affecting the other items (there is plenty of room).

My other idea was to programatically move the items back after the text boxes grow by coding in the picture and label's position. I have been unable to figure the correct event to use though- when I put the code in onload or onopen the code runs before the report is laid out.

Any other thoughts?
 
You can't get the height of a grown control until the On Print event. It is then too late to set the picture or label position properties.

You might be able to use one or more subreports for your text boxes. Since I don't know much about your layout left to right and top to bottom, I can't be of much more assistance.

Duane
Hook'D on Access
MS Access MVP
 
Subreport did the trick. Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top