Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
Dim intCountAll As Integer, isSolved As Boolean, counter As Integer
Dim intNext As Integer
If prevGroup = Nz(Me.txtProcType, vbNullString) Then
pgNum = pgNum + 1
Exit Sub
End If
prevGroup = Nz(Me.txtProcType, vbNullString)
Me.Detail.ForceNewPage = 0
intCountAll = Nz(Me.txtCountRecs, 0)
ReDim pgNumbers(1 To ((intCountAll / 5) + 3))
[COLOR=Red][B]Do While isSolved = False And counter < 100[/B][/COLOR]
counter = counter + 1