Dim drs As List(Of DataRow) Dim dr2 As DataRow For Each dr As DataRow In DataTables("表3").DataRows drs = DataTables("表2").Select("[组号2] = '" & dr("组号2") & "'") For Each dr1 As DataRow In drs dr2 = DataTables("表1").Find("编号 = '" & dr1("编号") & "'") If dr2 IsNot Nothing Then dr2("组号1") = dr("组号1") dr2("组内坐标") = dr("组内坐标") End If Next Next