佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1259|回复: 1

Ms Access PRINT REPORT如何的pagebreak(已经做好了)

[复制链接]
发表于 14-9-2006 06:27 PM | 显示全部楼层 |阅读模式
各位大大好,

我这里有些问题,因为我忘记了要如何的写CODING

我的问题是这样,我的REPORT这里有很多一正排(20 ROW) 的资料了,那么我要LIMIT差不多10 ROW的话.然后剩下的10 ROW就放在下一个PAGE。。

那我应该要在那里改一改?是在FORM里改,还是在 REPORT里改?

有劳各位大大了。。请教教小弟

[ 本帖最后由 程家伟 于 15-9-2006 01:30 PM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 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 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-9-2024 07:23 PM , Processed in 0.132674 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表