查看: 1259|回复: 1
|
Ms Access PRINT REPORT如何的pagebreak(已经做好了)
[复制链接]
|
|
各位大大好,
我这里有些问题,因为我忘记了要如何的写CODING
我的问题是这样,我的REPORT这里有很多一正排(20 ROW) 的资料了,那么我要LIMIT差不多10 ROW的话.然后剩下的10 ROW就放在下一个PAGE。。
那我应该要在那里改一改?是在FORM里改,还是在 REPORT里改?
有劳各位大大了。。请教教小弟
[ 本帖最后由 程家伟 于 15-9-2006 01:30 PM 编辑 ] |
|
|
|
|
|
|
|
楼主 |
发表于 15-9-2006 09:01 AM
|
显示全部楼层
我找到了一些资料了,不知是不是来的。。。有那位大大请看看
http://support.microsoft.com/kb/209006/EN-US/ <--这是microsoft link
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me![Counter] Mod 3 = 0 Then Me![PageBreak].Visible = True _
Else Me![PageBreak].Visible = False
End Sub
然后下面又讲这些可以modify的东西
NOTE: You can modify this example to print any number of records per page by changing the code in the OnFormat property of the Detail section from "mod 3" to "mod x" where x is the number of records you want to print per page. For example, if you want to print 11 records per page, change the expression to read:
If Me![Counter] Mod 11 = 0 Then Me![PageBreak].Visible = True _
Else Me![PageBreak].Visible = False
[ 本帖最后由 程家伟 于 15-9-2006 09:03 AM 编辑 ] |
|
|
|
|
|
|
| |
本周最热论坛帖子
|