回复 9# anjincheng 的帖子
anjincheng你的代码我只能单个的算出数量,不能联合下面语句查询,但我还是谢谢你的帮助,谢谢!sql="select paidan_name,count(bx_id) as danshu,sum(user_feiyong) as user_feiyong,sum((chuangshou))as chuangshou,sum(weixiu_feiyong) as weixiu_feiyong,sum(paodanfei) as paodanfei from baoxiu where baoxiu_date between #"&date1&"# and #"&DateAdd("d",1,date2)&"# group by paidan_name "