Dim dr As DataRow = e.DataRowDim dt As DataTable = DataTables("销售资料")If e.DataCol.Name = "管辖部门" Then dr("销售数量") = dt.Compute("Sum(数量)", "[管辖部门] = '" & dr("管辖部门") & "'")End If
老师我想在开piao月份输入4,,把销售资料的4月份的数量统计出来,,不管几号的是4月份的都统计出来,需要怎么做呀
现在就是不会分月统计麻烦指教一下