B
Bill
In the segment of code below, I show one
of two different types of totals. One when
bolCntrOn is true and the other a simple
record count taken from a textbox in the
report header that is bound to =count(*).
In the case of bolCntrOn = True, the
default text in Me.lblTotals.Caption is
used.
So what's the problem?? When bolCntrOn
is False and the caption is set to record
count, it will not print. I verified its setting
with the Debug.Print, but it's as though
the control is still not visible.
Bill
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As
Integer)
If Page() = Pages() Then
Me.lblTotals.Visible = True
If bolCntrOn = True Then
Me.tbAccumulator.Visible = True 'Display counter
Else
Me.lblTotals.Caption = "Total: " & Me.tbRecCount 'Display record
count
Debug.Print Me.lblTotals.Caption
End If
End If
End Sub
of two different types of totals. One when
bolCntrOn is true and the other a simple
record count taken from a textbox in the
report header that is bound to =count(*).
In the case of bolCntrOn = True, the
default text in Me.lblTotals.Caption is
used.
So what's the problem?? When bolCntrOn
is False and the caption is set to record
count, it will not print. I verified its setting
with the Debug.Print, but it's as though
the control is still not visible.
Bill
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As
Integer)
If Page() = Pages() Then
Me.lblTotals.Visible = True
If bolCntrOn = True Then
Me.tbAccumulator.Visible = True 'Display counter
Else
Me.lblTotals.Caption = "Total: " & Me.tbRecCount 'Display record
count
Debug.Print Me.lblTotals.Caption
End If
End If
End Sub