ASP网页显示数据库明细,我想在最后一行后面添加一行汇总行,如何实现?我用的DW做的。
<% While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) %>
<%=(Recordset1.Fields.Item("Dpt").Value)%>
<%=(Recordset1.Fields.Item("SalesTarget").Value)%>
<%=(Recordset1.Fields.Item("CurYearShipAmt").Value)%>
<%=(Recordset1.Fields.Item("CurYearRecAmt").Value)%>
<%=(Recordset1.Fields.Item("CurYearNewArs").Value)%>
<%=(Recordset1.Fields.Item("ToTalArs").Value)%>
<%=(Recordset1.Fields.Item("CurMonthShip").Value)%>
<%=FormatPercent((Recordset1.Fields.Item("RecRate").Value))%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
上面是明细行的代码,怎样在明细数据后面增加一行汇总数据呢?