1:水晶报表里有数组的概念,但是只能放1000个元素
当然,其实还有个简单的方法,可以用字符串来变通处理下
2:我觉得这种情况用个子报表更方便些。
子报表里不用数据集全量,做个sql上去只取个总和就可以了,类似于
select sum(x.price) as price_all
from
(select distinct price from table1) as x
==>
……
[/Quote]先组合"," & 每个车辆id & ",",依次放入同一个string变量中(先判断重复),问题已解决。string可达65536字节,对付一个区县够用(xxxx辆车),处理全市可能不够用,到时再说。泰哥很够意思,这么多天了还关注着。
1:水晶报表里有数组的概念,但是只能放1000个元素
当然,其实还有个简单的方法,可以用字符串来变通处理下
2:我觉得这种情况用个子报表更方便些。
子报表里不用数据集全量,做个sql上去只取个总和就可以了,类似于
select sum(x.price) as price_all
from
(select distinct price from table1) as x
==>
select sum(distinct(price)) from table