DoquangLam > 11-05-11, 06:23 PM
DoquangLam > 11-05-11, 10:46 PM
Noname > 12-05-11, 12:51 AM
'Khai báo trong module của Report
'tác giả: [b]lehongduc[/b]
'site: webketoan
'vui long giu thong tin tac gia neu ban dung doan code duoi day
Option Compare Database
Option Explicit
Dim Tongtrang As Double
Dim CongDon As Double
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount = 1 Then
Tongtrang = Tongtrang + Me.Quantity
End If
CongDon = CongDon + Me.Quantity
End Sub
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
Me.CongTrang = Tongtrang
Me.CongdonCuoiTrang = Me.CongMangSang + Tongtrang
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As Integer)
If Page = 1 Then CongDon = 0
Tongtrang = 0
Me.CongMangSang = CongDon
End Sub
Private Sub ReportFooter_Print(Cancel As Integer, PrintCount As Integer)
CongDon = 0
Tongtrang = 0
End Sub
DoquangLam > 12-05-11, 12:25 PM
haquocquan > 12-05-11, 01:16 PM
DoquangLam > 12-05-11, 03:04 PM
haquocquan > 12-05-11, 04:20 PM
(12-05-11, 03:04 PM)DoquangLam Đã viết: Ý mình là muốn cộng ở cột "Số tiền" theo từng quý, có trong report "T-NGHIEPVUCHITIET"
DoquangLam > 12-05-11, 04:51 PM
DoquangLam > 12-05-11, 10:21 PM
DoquangLam > 12-05-11, 10:43 PM