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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rectangles and Lines cause blank page

Status
Not open for further replies.

rotaxmax12

Technical User
Mar 22, 2011
5
US
I have a report that the request is to print a border around the body. The body is about 1.5 pages long for each detail section. When I add the vertical line in the report generates a blank page then prints the data. How can I stop this from happening?

I have tried drawing a line that is 10 inches long (to accommodate for the margins) but the second detail record will not print continuous. It moves to the second page I'm assuming because of the 10 inch line.

Hopefully I have explained the issue enough.

Thank you

JJ
 
If you are interested in placing a line or rectangle on every page, you can use code like the following which draws a rectangle on each page. You can change the 6 and 8 which represent inches

Code:
Private Sub Report_Page()
    Me.DrawWidth = 6
    Me.Line (0, 0)-Step(1440 * 6, 1440 * 8.5), , B
End Sub

Duane
Hook'D on Access
MS Access MVP
 
Also have a look at the margins in page setup - could be too big?

Beir bua agus beannacht!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top