Y
Y. Gauthier
When I generate a report, it is first previewed on the screen, then
the user decides to print or not.
But a value (tAllDkt) on one control (Me.totLen) is wrong on screen
but correct on paper.
Here are the sections where the variable is used:
* in (General)
Dim tAllDkt As Double
* in Private Sub Report_Activate()
tAllDkt = 0
* in Private Sub Report_Open(...)
tAllDkt = 0
* in Private Sub Detail_Print(...)
If Not noData Then
tAllDkt = tAllDkt + tDkt
* in Private Sub ReportFooter_Print(...)
Me.totLen = tAllDkt
* in Private Sub ReportHeader_Print(...)
tAllDkt = 0
What can be the cause of the difference?
the user decides to print or not.
But a value (tAllDkt) on one control (Me.totLen) is wrong on screen
but correct on paper.
Here are the sections where the variable is used:
* in (General)
Dim tAllDkt As Double
* in Private Sub Report_Activate()
tAllDkt = 0
* in Private Sub Report_Open(...)
tAllDkt = 0
* in Private Sub Detail_Print(...)
If Not noData Then
tAllDkt = tAllDkt + tDkt
* in Private Sub ReportFooter_Print(...)
Me.totLen = tAllDkt
* in Private Sub ReportHeader_Print(...)
tAllDkt = 0
What can be the cause of the difference?