G
Guest
I just can’t seem to get my report to total correctly, perhaps I can’t even
do what I’m trying…
I have a report, rptMeet, here’s a sample record:
Place Athlete School Result FinalPoints
1 Jones JFK 12345 5
txtFinalPoints is calculated:
IIf(IsNull([OverridePts]),[txtCalcPts],[OverridePts])
OverridePts is entered in the table on a form and resides in the report’s
record source, qryMeetRpt
txtCalcPts comes from:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If ([Relay] = False) Then
Select Case txtPlace
Case 1
txtCalcPts = 5
Case 2
txtCalcPts = 3
Case 3
txtCalcPts = 1
Case Else
txtCalcPts = 0
End Select
Else
Select Case txtPlace
Case 1
txtCalcPts = 5
Case Else
txtCalcPts = 0
End Select
End If
I want to sum the txtFinalPoints field grouped on School (school parameters,
txtSchool1 and txtSchool2, are supplied by a form, frmPrintRepts).
Can someone point me in the right direction so that I can sum for School1
and School2 in the group footer section, even though the field I’m summing is
calculated only on this report, and doesn’t live anywhere else in my database?
do what I’m trying…
I have a report, rptMeet, here’s a sample record:
Place Athlete School Result FinalPoints
1 Jones JFK 12345 5
txtFinalPoints is calculated:
IIf(IsNull([OverridePts]),[txtCalcPts],[OverridePts])
OverridePts is entered in the table on a form and resides in the report’s
record source, qryMeetRpt
txtCalcPts comes from:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If ([Relay] = False) Then
Select Case txtPlace
Case 1
txtCalcPts = 5
Case 2
txtCalcPts = 3
Case 3
txtCalcPts = 1
Case Else
txtCalcPts = 0
End Select
Else
Select Case txtPlace
Case 1
txtCalcPts = 5
Case Else
txtCalcPts = 0
End Select
End If
I want to sum the txtFinalPoints field grouped on School (school parameters,
txtSchool1 and txtSchool2, are supplied by a form, frmPrintRepts).
Can someone point me in the right direction so that I can sum for School1
and School2 in the group footer section, even though the field I’m summing is
calculated only on this report, and doesn’t live anywhere else in my database?