For Each dr1 As DataRow In DataTables("展开表录入").Select("是否为可能原因 = 'yes'") Dim dr2 As DataRow = DataTables("异常原因").Find("客户名称 = '" & dr1("客户") & "' And 鱼骨图编号 = '" & dr1("鱼骨图编号") & "'") If dr2 Is Nothing Then dr2 = DataTables("异常原因").AddNew() dr2("客户名称") = dr1("客户") dr2("鱼骨图编号") = dr1("鱼骨图编号") End If dr2(dr1("主干")) = dr1("可能原因描述") Next