J
JOM
A part of my report looks like this
_________________________________________________________
John smith |
123 Address line 1 |
P.O Box Address line 2 |
Las Vegas, NE 14785 - 0000 |
_______________________________|___________________________
The following draws my vertical line where I want it to draw. But sometimes
the address line 2 does not exist so that means the vertical line will be
longer than needed how do I format the report so that If I have 1 or 2
address lines the vertical line will be propotional to the report....
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 = 1980
' Make colour black
lngColor = RGB(0, 0, 0)
' Draw line 3.86 inches in from left margin
Me.Line (5572, 50)-(5572, sngHeight), lngColor End Sub
_________________________________________________________
John smith |
123 Address line 1 |
P.O Box Address line 2 |
Las Vegas, NE 14785 - 0000 |
_______________________________|___________________________
The following draws my vertical line where I want it to draw. But sometimes
the address line 2 does not exist so that means the vertical line will be
longer than needed how do I format the report so that If I have 1 or 2
address lines the vertical line will be propotional to the report....
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 = 1980
' Make colour black
lngColor = RGB(0, 0, 0)
' Draw line 3.86 inches in from left margin
Me.Line (5572, 50)-(5572, sngHeight), lngColor End Sub