|
求助
我是这么做的,盼望老师指正,万分感谢!
Option Compare Database
Dim X As Double
Dim x1 As Double
Dim x2 As Double
Private Sub 报表页眉_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Private Sub 报表页眉_Print(Cancel As Integer, PrintCount As Integer)
X = 0
x1 = 0
x2 = 0
End Sub
Private Sub 页面页脚_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Private Sub 页面页脚_Print(Cancel As Integer, PrintCount As Integer)
pagesum = runsum - X
X = runsum
pagesum1 = runsum1 - x1
x1 = runsum1
pagesum2 = runsum2 - x2
x2 = runsum2
End Sub |
|