Drawing lines

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have the following in my report to draw vertical lines

Me.Line (Me.ScaleWidth / 7.4, 300)-(Me.ScaleWidth / 7.4, Me.ScaleHeight)
Me.Line (Me.ScaleWidth / 2.68, 300)-(Me.ScaleWidth / 2.68, Me.ScaleHeight)
Me.Line (Me.ScaleWidth / 2.46, 300)-(Me.ScaleWidth / 2.46, Me.ScaleHeight)

My report is 6 pages long. On the first page I would like the lines to stop
at the report header, but on the additional pages, I want them to run the
whole length of the page.

How could I change the above code so I don't have any lines through my
report header? Thanks
 
Examine the Page property of the report to see if you are on page one:

If Me.Page = 1 Then
Me.Line ... 'whatever matches page one.
...
Else
Me.Line ... 'what you already have.
...
End If
 
Back
Top