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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing textboxes

Status
Not open for further replies.

akacoroski

Technical User
Jul 22, 2003
1
US
I have a report with multiple textboxes in the Detail section, and each textbox has CanGrow enabled. I want to keep all textboxes the size, i.e. when one grows they all grow such that on print or view, each is the size of the largest.

The built-in events OnFormat and OnPrint don't seem to work. OnFormat fires after data is loaded but before formatting, so there is no way to know for sure how much growing will occur. OnPrint doesn't allow resizing of textboxes (at least in Access 2000).

Any suggestions?
 
I assume you want the borders to look like they are all the same height. The method I use is to write code in the On Print event of the section that checks for the maximum height of all text boxes and then uses the Line method to draw the boxes/rectangles. Make sure the borders of your text boxes are set to transparent.
There is an example of this in the Calendar report demo at
Duane
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top