DataTables("表C").Datarows.Clear() For Each dr1 As DataRow In DataTables("表A").Select("xm Is Not Null") For Each dr2 As DataRow In DataTables("表B").Select("第一列 is not null") Dim dr3 As DataRow = DataTables("表C").AddNew() dr3("第一列") = dr1("xm") dr3("第二列") = dr1("第二列") dr3("第三列") = dr2("第一列") dr3("第四列") = dr2("第二列") dr3("第五列") = dr2("第三列") Next Next