How to make group boxes resize in Access reports?

  • Thread starter Thread starter Kirt
  • Start date Start date
K

Kirt

I want to put a box around specific sections on a report that will
resize to contain all records within that section (group). What I
want is something like a groupbox in a dialog window with the label
embedded in the frame. I can create the text over the top of the box
and it looks fine, but how does one make the box resize to fit all the
records?

Thanks,
Kirt
 
Kirt said:
I want to put a box around specific sections on a report that will
resize to contain all records within that section (group). What I
want is something like a groupbox in a dialog window with the label
embedded in the frame. I can create the text over the top of the box
and it looks fine, but how does one make the box resize to fit all the
records?

The only way to get a verticle line that spans a CanGrow
section is to draw the line using code in the section's
Print event. Since the lines will be cropped at the section
boundaries, you don't even have to figure out how tall the
section is.

Me.Line (0,0) - (0,20000)
Me.Line (Me.Width,0) - Step(0,20000)

You can place horizontal lines in the header and footer to
provide the top and bottom of the "box"
 
Back
Top