|
一点通先生你好!我要的是每一页既有合计数,又有累计数的那种,可能有点难,我的本页合计是用代码做的,代码如下:
Option Compare Database
Private Dtemp As Double
Private Sub Report_Open(Cancel As Integer)
End Sub
Private Sub Report_Page()
'每开始一个新页将临时变量归0
Dtemp = 0
End Sub
Private Sub 页面页脚_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Private Sub 页面页脚_Print(Cancel As Integer, PrintCount As Integer)
'显示页合计
Me.TxtPageSum = Dtemp
End Sub
Private Sub 主体_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Private Sub 主体_Print(Cancel As Integer, PrintCount As Integer)
'累计本页数量
Dtemp = Dtemp + [交费]
End Sub
可能截止每页累计数也要用代码做,可惜我不会,求您再帮我想想办法。 |
|