J
Jacco
Hi everyone, I coded some VB for a report that used to work fine. Now I
changed from Access 2000 to 2003 (and different computer) and now the output
results into #name?
The code: (shorted due to repeating simular actions)
Option Compare Database
Option Explicit
Public DurationSum As Double
Public DurationPage As Double
Private Sub Detail_Print(Cancel As Integer, FormatCount As Integer)
DurationSum = DurationSum + Reports![Jar_Jeppesen_L]![Duration]
DurationPage = DurationPage + Reports![Jar_Jeppesen_L]![Duration]
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
' reset the counter for each new page
DurationPage = 0
End Sub
The output field(s):
=IIf([DurationPage]=0,"",Int([DurationPage]))
etc.
Any help is appreciated.
Jacco
changed from Access 2000 to 2003 (and different computer) and now the output
results into #name?
The code: (shorted due to repeating simular actions)
Option Compare Database
Option Explicit
Public DurationSum As Double
Public DurationPage As Double
Private Sub Detail_Print(Cancel As Integer, FormatCount As Integer)
DurationSum = DurationSum + Reports![Jar_Jeppesen_L]![Duration]
DurationPage = DurationPage + Reports![Jar_Jeppesen_L]![Duration]
End Sub
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
' reset the counter for each new page
DurationPage = 0
End Sub
The output field(s):
=IIf([DurationPage]=0,"",Int([DurationPage]))
etc.
Any help is appreciated.
Jacco