Private Sub Report_Open(Cancel As Integer)
Me.Caption = dtmStartDate & "至" & dtmEndDate & "商品库存表"
End Sub
Private Sub 报表页脚_Print(Cancel As Integer, PrintCount As Integer)
Me.txtTotalBal = curTotalBal
Me.txtTotalIn = curTotalIn
Me.txtTotalOut = curTotalOut
Me.txtTotalInv = curTotalInv
End Sub
Private Sub 报表页眉_Print(Cancel As Integer, PrintCount As Integer)
curTotalBal = 0
curTotalIn = 0
curTotalOut = 0
curTotalInv = 0
End Sub
Private Sub 主体_Print(Cancel As Integer, PrintCount As Integer)
curSumBal = curSumBal + Me.txtBal
curSumIn = curSumIn + Me.txtIn
curSumOut = curSumOut + Me.txtOut
curSumInv = curSumInv + Me.txtInv
End Sub
Private Sub 组页脚0_Print(Cancel As Integer, PrintCount As Integer)
Me.txtSumBal = curSumBal
Me.txtSumIn = curSumIn
Me.txtSumOut = curSumOut
Me.txtSumInv = curSumInv
curTotalBal = curTotalBal + Me.txtSumBal
curTotalIn = curTotalIn + Me.txtSumIn
curTotalOut = curTotalOut + Me.txtSumOut
curTotalInv = curTotalInv + Me.txtSumInv
End Sub
Private Sub 组页眉0_Print(Cancel As Integer, PrintCount As Integer)
curSumBal = 0
curSumIn = 0
curSumOut = 0
curSumInv = 0
End Sub