Border

  • Thread starter Thread starter BW
  • Start date Start date
B

BW

Is there a simple way to apply a border around each page of an access
report?

Brent
 
You can use the Line method in the report's Page event procedure ...

Private Sub Report_Page()

Dim sngTop As Single, sngLeft As Single
Dim sngWidth As Single, sngHeight As Single

Me.ScaleMode = 3
sngTop = Me.ScaleTop + 5
sngLeft = Me.ScaleLeft + 5
sngWidth = Me.ScaleWidth - 10
sngHeight = Me.ScaleHeight - 10
Me.Line (sngTop, sngLeft)-(sngWidth, sngHeight), vbBlack, B

End Sub

See Line Method in the help files for more information.
 
Thanks

Brent


Brendan Reynolds said:
You can use the Line method in the report's Page event procedure ...

Private Sub Report_Page()

Dim sngTop As Single, sngLeft As Single
Dim sngWidth As Single, sngHeight As Single

Me.ScaleMode = 3
sngTop = Me.ScaleTop + 5
sngLeft = Me.ScaleLeft + 5
sngWidth = Me.ScaleWidth - 10
sngHeight = Me.ScaleHeight - 10
Me.Line (sngTop, sngLeft)-(sngWidth, sngHeight), vbBlack, B

End Sub

See Line Method in the help files for more information.
 

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

Back
Top