
05-04-11, 23:33
|
| Όνομα: ΔΗΜΗΤΡΗΣ Έκδοση λογισμικού Office: Ms-Office 2003, Ms-Office 2007, Ms-Office 2010 Γλώσσα λογισμικού Office: Ελληνική | | Εγγραφή: 09-11-2010 Περιοχή: Γιαννιτσά
Μηνύματα: 149
| |
Option Compare Database
Option Explicit
Dim lastcount As Integer
Dim PageTotal As Currency ' Double?
Private Sub FormDetail_Print(Cancel As Integer, PrintCount As Integer)
If lastcount = 0 Then lastcount = PrintCount
If PrintCount = lastcount Then
PageTotal = PageTotal + Nz(Me.[Poso])
Else
lastcount = PrintCount
PageTotal = Nz(Me.[Poso])
End If
End Sub
Private Sub FormDetail_Retreat()
PageTotal = PageTotal + Nz(Me.[Poso]) * (-1)
End Sub
Private Sub FormPageFooter_Print(Cancel As Integer, PrintCount As Integer)
Me.PageTotals = PageTotal
PageTotal = 0
End Sub
Για δοκίμασε το ετσι να δουμε αποτελεσμα
Φιλικα Δημητρης
|