![]() |
Sergey Kornilov admin 3/17/2004 |
Here is what you can do to calculate column averages. You need to modify Sub LoopRs in ..._list.asp for this purpose. See my changes in bold. ' display table with results sub loopRs(rsData,nPageSize) Total1=0 Total2=0 ' Pagination: dim iShadeTheDetail dim iNumberOfRows iNumberOfRows = 0 if isObject(rsData) then ' Pagination: UNTIL iNumberOfRows>=maxrecs DO UNTIL rsData.eof OR iNumberOfRows>=nPageSize Total1 = Total1 + rsData("Field1") Total2 = Total2 + rsData("Field2") ... Loop Total1 = Total1/iNumberOfRows Total2 = Total2/iNumberOfRows response.write "<tr class=blackshade><td class=blackshade>" & Total1 & "</td><td>" & Total2 & "</td></tr>" end if end sub
|
|
501035 3/18/2004 |
Hi again. |