呵呵,你加粗的部分,代码完全一样,得到的结果当然应该一样才对的:
dr("期初") = DataTables("表A").Compute("sum(数量)",flt)dr("入库") = DataTables("表A").Compute("sum(数量)",flt)dr("出库") = DataTables("表A").Compute("sum(数量)",flt)