如果是给当前行:
Tables("订单明细表").Current("已交数") = dt.Compute("sum(实交数量)") ',"订单流水号 = '" & e.DataRow("订单流水号") & "' and 客户编号 = '" & e.DataRow("客户编号") & "'")
如果是给触发事件的行:
e.Datarow("已交数") = dt.Compute("sum(实交数量)") ',"订单流水号 = '" & e.DataRow("订单流水号") & "' and 客户编号 = '" & e.DataRow("客户编号") & "'")