J
JOM
With the help of Ken Sheridian, here is a code to draw a line in my report
but I am having an error, Invalid use of Me keyword... Anyone out there to me
help...
Sub DrawLine()
Dim lngColor As Long
Dim sngHeight As Single
' Set scale to twips
Me.ScaleMode = 1
' Set line width in pixels
Me.DrawWidth = 5
' Set height to artificially high value
sngHeight = 14400
' Make colour black
lngColor = RGB(0, 0, 0)
' Draw line 2 inches in from left margin
Me.Line (2880, 0)-(2880, sngHeight), lngColor
End Sub
Then you call it in the detail section's Print event procedure with:
' Call the Drawline procedure
DrawLine
but I am having an error, Invalid use of Me keyword... Anyone out there to me
help...
Sub DrawLine()
Dim lngColor As Long
Dim sngHeight As Single
' Set scale to twips
Me.ScaleMode = 1
' Set line width in pixels
Me.DrawWidth = 5
' Set height to artificially high value
sngHeight = 14400
' Make colour black
lngColor = RGB(0, 0, 0)
' Draw line 2 inches in from left margin
Me.Line (2880, 0)-(2880, sngHeight), lngColor
End Sub
Then you call it in the detail section's Print event procedure with:
' Call the Drawline procedure
DrawLine