这样对比起来看应该更明了:Total = DataTables("订单").Compute("Sum(数量)", "[客户] = '" & Customer & "'")将条件表达式用实例数据表示:Total = DataTables("订单").Compute("Sum(数量)", [客户] = '张三')