wow your good
And very close. now I've put the
scoretotal=0
killtotal=0
deathtotal=0
'To add the values up, do it when you output each callsign:
scoretotal = scoretotal + rsSquads("Sum of score"

killtotal = killtotal + rsSquads("Sum of kills"

deathtotal = deathtotal + rsSquads("Sum of death"
part where it is below on the code and right after the <% squadhead=""
either way it shows zero for each one.
Interesting note - before I moved it to where it is now (below) the first squad group - showed nothing for totals - not even zero's. at this point i'm showing zero's at anyrate.
<table width="347" border="0" cellspacing="0" cellpadding="0">
<% squadhead=""
While ((Repeat2__numRows <> 0) AND (NOT rsSquads.EOF))
%>
<% If rsSquads("squad"

<>squadhead then
' this is a different squad group
' Now output scores from PREVIOUS squad
If squadhead <> "" then
scoretotal=0
killtotal=0
deathtotal=0
'To add the values up, do it when you output each callsign:
scoretotal = scoretotal + rsSquads("Sum of score"

killtotal = killtotal + rsSquads("Sum of kills"

deathtotal = deathtotal + rsSquads("Sum of death"

' This is an important test because we dont want to
' output the scores when we first hit the loop %>
<tr background="../../images/web/background.gif">
<td><font color="#CCCCCC" face="Impact" size="2">Squad totals:</font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=scoretotal%></font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=killtotal%></font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=deathtotal%></font></td>
</tr>
<% ' Now RESET the values
scoretotal=0
killtotal =0
deathtotal=0
End if
' Continue with code for header
squadhead=rsSquads("squad"

' No using response.write here as its a lot of code
' All this is your squad header %>
<tr background="../../images/web/background.gif">
<th colspan="4" class="gvff"><%=(rsSquads.Fields.Item("squad"

.Value)%></th>
</tr>
<tr background="../../images/web/background.gif">
<td><font color="#CCCCCC" face="Impact" size="2">Callsign</font></td>
<td><font color="#CCCCCC" face="Impact" size="2">Score</font></td>
<td><font color="#CCCCCC" face="Impact" size="2">Kills</font></td>
<td><font color="#CCCCCC" face="Impact" size="2">Death</font></td>
</tr>
<% End if %>
<tr>
<td class="gvff"><%=(rsSquads.Fields.Item("callsign"

.Value)%></td>
<td class="gvff"><%=(rsSquads.Fields.Item("Sum Of score"

.Value)%></td>
<td class="gvff"><%=(rsSquads.Fields.Item("Sum Of kills"

.Value)%></td>
<td class="gvff"><%=(rsSquads.Fields.Item("Sum Of death"

.Value)%></td>
</tr>
<%
Repeat2__index=Repeat2__index+1
Repeat2__numRows=Repeat2__numRows-1
rsSquads.MoveNext()
Wend
%>
<%' output scores of last squad
If squadhead <> "" then
' This is an important test because we dont want to
' output the scores if we have no records in the recordset %>
<tr background="../images/web/background.gif">
<td><font color="#CCCCCC" face="Impact" size="2">Squad totals:</font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=scoretotal%></font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=killtotal%></font></td>
<td><font color="#CCCCCC" face="Impact" size="2" align="right"><%=deathtotal%></font></td>
</tr>
<% End if %>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>