首页上一页 1 下一页尾页 1 条记录 1/1页
分组统计问题
发表在VB答疑区
2008-10-13
是否精华
是
否
版块置顶:
是
否
您好
请问
下面一段代码,数据表‘ARR’只有一行记录时正常,超过一行时,总把最后一行漏掉,例如有两行时
只查询到第一行,有四行时,只查到前三行的分组统计。请您帮我看一下,代码错在哪个地方好吗。
Adodc1.RecordSource = "select SJ1,sum(SJ2) AS SJ2,sum(SJ3) AS SJ3,sum(SJ4) AS SJ4," _
& "sum(SJ5) AS SJ5 from ARR group by SJ1 order by SJ1"
Adodc1.Refresh
恳求帮助
谢谢
请问
下面一段代码,数据表‘ARR’只有一行记录时正常,超过一行时,总把最后一行漏掉,例如有两行时
只查询到第一行,有四行时,只查到前三行的分组统计。请您帮我看一下,代码错在哪个地方好吗。
Adodc1.RecordSource = "select SJ1,sum(SJ2) AS SJ2,sum(SJ3) AS SJ3,sum(SJ4) AS SJ4," _
& "sum(SJ5) AS SJ5 from ARR group by SJ1 order by SJ1"
Adodc1.Refresh
恳求帮助
谢谢