Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vertical lines

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
I have a report with 8 columns. How could i divide them vertically with a line ?
 
If you mean you have set the columns property to eight, you can use code to draw the lines, as DHookom says.

Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim LinePlacement As Integer

Me.DrawWidth = 7
'Me.Width=1065, that is, narrow enough to fit 8 columns.

For i = 1 To 8
    LinePlacement = (Me.Width) * i
    Me.Line (LinePlacement, 0)-Step(0, Me.Detail.Height)
Next

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top