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

Adjust Line Height in Detail 1

Status
Not open for further replies.

perrymans

IS-IT--Management
Nov 27, 2001
1,340
US
I want to make the vertical line in my access report grow and shrink with the detail record.

There are multiple records in the detail per grouping, each with a different hieght.

I tried lngHeight = Me.txtBox.Height but it just sets the line to one height, it doesn't adjust for each different record height.

Thanks. Sean.
 
I would use code in the On Print event of the detail section to draw the line. For instance to draw green and red lines at the left and right margins of the report
Code:
    Me.Line (0, 0)-Step(0, Me.Height), vbGreen
    Me.Line (Me.Width, 0)-Step(0, Me.Height), vbRed

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top