Thanks to dhookum I'm trying to implement the following code to draw boxes around the controls in the details section set at the tallest control at the On-Print event:
All I get is vertical lines that are set at the right height, but no horizontal lines. Anyone had any more experience with the Line function?
Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Dim lngHeight As Long 'store the height of tallest control
Dim CTL As Access.Control
'set the height of tallest
lngHeight = Me.txtItemObjectiveText.Height
'draw the box
For Each CTL In Me.Detail.Controls
Me.Line (CTL.Left, 0)-(CTL.Left, lngHeight), RGB(0, 0, 0)
Next
Set CTL = Nothing
End Sub
All I get is vertical lines that are set at the right height, but no horizontal lines. Anyone had any more experience with the Line function?