J
Jerome
Hi there,
I've got the following situation:
A report (R) with a sub-report (SR) in the detail section.
SR's detail section has the following code in its OnFormat event (I need
to know how many 'M' and how many 'F' there are for the 'W' people):
-----------------------------------------------------------------------
Select Case Me.QUAL_PART
Case "M"
Me.nom_p.FontBold = True
Me.nom_p.FontItalic = False
Case "W"
Me.nom_p.FontBold = False
Me.nom_p.FontItalic = True
Case "P"
Me.nom_p.FontBold = False
Me.nom_p.FontItalic = False
CountPar = CountPar + 1
If Me.sexe = "M" Then
CountM = CountM + 1
Else
CountF = CountF + 1
End If
End Select
Me.FCountPart.Value = CountPar
Me.FcountM.Value = CountM
Me.FcountF.Value = CountF
-------------------------------------------------------------
This works fine when the report only has ONE page! If the list goes on
to a second page, the count values get wrong!? It seems like he's adding
those on the second page twice??
I'm still looking myself to find the error, but any help is greatly
appreciated!!
Thanks,
Jerome
I've got the following situation:
A report (R) with a sub-report (SR) in the detail section.
SR's detail section has the following code in its OnFormat event (I need
to know how many 'M' and how many 'F' there are for the 'W' people):
-----------------------------------------------------------------------
Select Case Me.QUAL_PART
Case "M"
Me.nom_p.FontBold = True
Me.nom_p.FontItalic = False
Case "W"
Me.nom_p.FontBold = False
Me.nom_p.FontItalic = True
Case "P"
Me.nom_p.FontBold = False
Me.nom_p.FontItalic = False
CountPar = CountPar + 1
If Me.sexe = "M" Then
CountM = CountM + 1
Else
CountF = CountF + 1
End If
End Select
Me.FCountPart.Value = CountPar
Me.FcountM.Value = CountM
Me.FcountF.Value = CountF
-------------------------------------------------------------
This works fine when the report only has ONE page! If the list goes on
to a second page, the count values get wrong!? It seems like he's adding
those on the second page twice??
I'm still looking myself to find the error, but any help is greatly
appreciated!!
Thanks,
Jerome