Draw a continuous verticle line in a report between two columns.

G

Guest

I want to draw a continuous verticle line in a report between two columns of
data, but the ling breaks where the cell data wraps. Is there a way to
control the placement of lines where there is no break?
 
F

fredg

I want to draw a continuous verticle line in a report between two columns of
data, but the ling breaks where the cell data wraps. Is there a way to
control the placement of lines where there is no break?

Look up the Line method in VBA help.
Place the code in the report's Page event, not the detail event.

Adjust the argument values as needed.

Dim X1, Y1, X2, Y2 As Single
Me.DrawStyle = 0
Me.DrawWidth = 1 ' set the thickness of the line
' Set the coordinates and draw a line down the middle of the page.
X1 = Int(Me.ScaleWidth / 2) ' find the middle of the page
Y1 = Me.Section(acPageHeader).Height ' start just below the page
header
X2 = X1
Y2 = Me.ScaleHeight ' set length of line
Me.Line (X1, Y1)-(X2, Y2)
 
T

Trina Jackson

Glo said:
I want to draw a continuous verticle line in a report between two columns of
data, but the ling breaks where the cell data wraps. Is there a way to
control the placement of lines where there is no break?
this is not your right email adress

do not send anything to me again
 

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