Vertical line?

S

SF

I have a report with two memo fields. I have a vertical line that separate
these 2 fields. When I view the report the height of the verticle line is
the same, How can I extend this vertical line as per the height of the
field.

SF
 
D

Duane Hookom

Do both text boxes grow? You can use the Line method in the On Print event
of the report section containing the two text boxes. Assuming the left box
is txtLeft and the other is txtRight, you would use code like:

Dim lngHeight as Long
If Me.txtRight > Me.txtLeft Then
lngHeight = Me.txtRight.Height
Else
lngHeight = Me.txtLeftHeight
End If
Me.Line (Me.txtLeft.Left + Me.txtLeftWidth, _
Me.txtLeft.Top)-Step(0,lngHeight)
 
D

Duane Hookom

There is no Line control in my suggestion. This solution uses code to draw a
line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top