Drawing lines

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
 
A

Allen Browne

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
 

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