Article ID: 119073
Article Last Modified on 1/19/2007
Name: TotGrp
ControlSource: =Count(*) 'Returns the number of records per group.
Name: ProductName
ControlSource: [ProductName]
Option Compare Database 'Use database order for string comparisons.
Option Explicit
Global TotCount As Integer
' Call the SetCount() function from the group header section's
' OnPrint property using the syntax: =SetCount(Report)
Function SetCount (R As Report)
TotCount = 0
R![ProductName].Visible = True
End Function
' Call the PrintLines() function from the detail section's OnPrint
' property using the syntax: =PrintLines(Report,[TotGrp]).
Function PrintLines (R As Report, TotGrp)
TotCount = TotCount + 1
If TotCount = TotGrp Then
R.NextRecord = False
ElseIf TotCount > TotGrp And TotCount < 15 Then
R.NextRecord = False
R![ProductName].Visible = False
End If
End Function
Additional query words: preprinted pre-printed fixed
Keywords: kbhowto kbprogramming kbusage KB119073