合成不同的统计条件,比如
Dim dt as datatable = DataTables("表A")
Dim sum1 = dt.compute("count(订单号)", "下单日期 >= #" & date.today.adddays(-5) & "#")
msgbox(sum1)
Dim sum2 = dt.compute("count(订单号)", "下单日期 < #" & date.today.adddays(-5) & "# and 状态 = '未完成'")
msgbox(sum2)