在function中使用recordset对象function GetTotalFee(rsObj)
在function中使用recordset对象
set rs = rsobj
在function中使用recordset对象
在function中使用recordset对象
在function中使用recordset对象allsum 
= 0
在function中使用recordset对象rs.Movefirst
在function中使用recordset对象
在function中使用recordset对象
while not rs.eof 
在function中使用recordset对象      daysum 
=0
在function中使用recordset对象      
for i=6 to rs.fields.count-8
在function中使用recordset对象      
if instr(lcase(rs.fields(i).name),"remark")=0 then
在function中使用recordset对象        
if Not IsNull(rs(rs.fields(i).name)) then 
在function中使用recordset对象            
if cint(trim(rs(rs.fields(i).name)))<>0 then
在function中使用recordset对象                daysum
=daysum+cint(trim(rs(rs.fields(i).name)))
在function中使用recordset对象                
'Response.write daysum&"<br>"
在function中使用recordset对象

在function中使用recordset对象            
end if
在function中使用recordset对象        
end if
在function中使用recordset对象      
end if
在function中使用recordset对象
在function中使用recordset对象      
next
在function中使用recordset对象
在function中使用recordset对象      allsum 
= allsum + cint(daysum)
在function中使用recordset对象
在function中使用recordset对象 
在function中使用recordset对象rs.MoveNext
在function中使用recordset对象
在function中使用recordset对象
wend
在function中使用recordset对象GetTotalFee 
= allsum
在function中使用recordset对象
end function
在function中使用recordset对象

在function中使用recordset对象sql_display="select * from expense where fileno ='"&strBH&"' order by expenseDate asc"
在function中使用recordset对象
    
在function中使用recordset对象
在function中使用recordset对象    
set objDisplay=conn.execute(sql_display)

调用
在function中使用recordset对象 <%=GetTotalFee(objDisplay) %>

相关文章: