日期:2014-05-16 浏览次数:20797 次
dim n1,n2,n3,s1,s2,s3
n1=0:n2=0:n3=0:s1=0:s2=0:s3=0
.......
If rs_r("record_tp")=37 Then
tp=2
n2=n2+1
s2=s2+rs_r("record_sum")
ElseIf rs_r("record_incometype")<>0 Then
tp=1
n1=n1+1
s1=s1+rs_r("record_sum")
Else
tp=0
n0=n0+1
s0=s0+rs_r("record_sum")
End If
<div align="center" style=" color: #009; padding:5px;">本页小计:支出<%=n0%>笔总计<%=s0%>元,收入<%=n1%>笔总计<%=s1%>元,转账<%=n2%>笔总计<%=s2%>元,结余<%response.Write(cdbl(s1-s0))%>元</div>