Dim cr As Row = Tables("表A").current If cr.IsNull("工序编号") Then cr("工序数") = Nothing cr("工位工时") = Nothing Else cr("工序数") = cr("工程编号").Split(",").Length cr("工位工时") = DataTables("表B").Compute("sum(标准工时)", "工序编号 in ('" & cr("工程编号").Replace(",", "','") & "')") End If