There is a horizontal line that I need to place in a specific place on the report. However, when I try to move its position via its properties, Access rounds the position which causes it to be too far left/right of the needed position.
I know the below will draw a vertical line via code in the On Format or On Print within the report. However, I have been unable to find how to change it to draw a horizontal line.
Dim x1 As Single, Y1 As Single
Dim x2 As Single, Y2 As Single
Dim Color As Long
' Specify unit of measurement for coordinates on a page...
Me.ScaleMode = 5 ' Specify that measurement occur in inches.
' Set line to print 5 inches from the left margin.
x1 = 3.48
x2 = 3.48
' Set line to print from the top of the detail section
' to a maximum height of 22 inches.
Y1 = 0
Y2 = 22
Me.DrawWidth = 10 ' Width of the line (in pixels).
Color = RGB(0, 0, 0) ' Use black line color.
'Color1 = RGB(2050, 300, 0)
' Draw the line with the Line method.
Me.Line (x1, Y1)-(x2, Y2), Color
Any suggestions?
Thank you for any and all help,
PBrown
I know the below will draw a vertical line via code in the On Format or On Print within the report. However, I have been unable to find how to change it to draw a horizontal line.
Dim x1 As Single, Y1 As Single
Dim x2 As Single, Y2 As Single
Dim Color As Long
' Specify unit of measurement for coordinates on a page...
Me.ScaleMode = 5 ' Specify that measurement occur in inches.
' Set line to print 5 inches from the left margin.
x1 = 3.48
x2 = 3.48
' Set line to print from the top of the detail section
' to a maximum height of 22 inches.
Y1 = 0
Y2 = 22
Me.DrawWidth = 10 ' Width of the line (in pixels).
Color = RGB(0, 0, 0) ' Use black line color.
'Color1 = RGB(2050, 300, 0)
' Draw the line with the Line method.
Me.Line (x1, Y1)-(x2, Y2), Color
Any suggestions?
Thank you for any and all help,
PBrown