Question : Darwing a line with  Line method

Using the code below I am draing vertical lines to the left of each textbox in the detail section of a report.
This works fine except when there is a lot of text(more than 7 lines ) in one of the text boxes and  i get a break in the line about halfway down the left side of the text box until the next record where the line then continues. I have not found a solution.
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
For Each ctlDetail In Me.Section(acDetail).Controls
    With ctlDetail
    If ctlDetail.name <> "LegendSign" And ctlDetail.name <> "Maximum" And ctlDetail.name <> "customerID" And ctlDetail.Visible = True Then
       ' If Page = 1 Then
       
     Me.DrawWidth = 20
     
            Me.Line ((.Left + .Width), 1 + Me.Section(acPageHeader).Height) _
            -(.Left + .Width, Me.ScaleHeight - (Me.Section(acGroupLevel2Footer).Height))
            
        End If
    End With
Next

Answer : Darwing a line with  Line method

I have a soluton for the problem
1:
2:
3:
4:
Me.Line ((.Left + .Width), 1 + Me.Section(acPageHeader).Height) _
            -(.Left + .Width, Me.ScaleHeight - (Me.Section(acGroupLevel2Footer).Height))
             Me.Line ((.Left + .Width), 1 + Me.Section(acPageHeader).Height) _
            -(.Left + .Width, Me.ScaleHeight + (Me.Section(acGroupLevel2Footer).Height))
Random Solutions  
 
programming4us programming4us