Dim g As New CrossTableBuilder("统计表2", DataTables("crm_sale"))
g.HGroups.AddDef("sell_date", DateGroupEnum.Year, "年")
g.HGroups.AddDef("sell_date", "月")
g.HGroups.AddDef("sell_date", DateGroupEnum.Week, "周")
g.VGroups.AddDef("dianxin_shoukuanren")
g.Totals.AddDef("totalMoney", "totalMoney")
g.OrderByTotal = True
g.HorizontalTotal = True
g.VerticalTotal = True
g.Subtotal = True
g.FromServer = True
g.Filter = "[sell_date]>='" & e.form.Controls("dtpXiaoshouriqikaishi").text & "' and [sell_date]<='" & e.form.Controls("dtpXiaoshouriqijieshu").text & "'"
g.Build()
MainTable = Tables("统计表2")
为什么统计出来的结果不包括最后一天的日期的内容?我已经写了<=呀