有统计问题请教
大家好!本人用如下进行内码,实现了查询某一时间段的各项求和,但是如何在各项求和后再求出所占百分比?请帮忙解决。谢谢!
strsql = "SELECT zr ,sum(xj) AS 同类废品重量和 from 废品统计表 " & _
"WHERE (rq>=#" & DTPicker1.Value & "#) and (rq<=#" & DTPicker2.Value & "#)" & _
"group by zr"
Adodc1.RecordSource = strsql
Adodc1.Refresh
[此贴子已经被作者于2007-10-16 9:24:25编辑过]