--
Dim Dic As new Dictionary(of Row, DataRow)
For Each r As Row In Tables("某表").Rows
Dim dr As DataRow
dr = DataTables("项目报告管理表").Find("项目编号 = \'" & r("项目编号") & "\'" )
If dr IsNot Nothing \'如果找到, 则设置各列内容
Dic.Add(r,dr)
End If
Next
For Each dr2 As Row In dic.Keys
dr2("归属项目")= dic(dr2)("项目类型")
dr2("日期")= dic(dr2)("申报时间")
dr2("领料单位")= dic(dr2)("项目单位")
dr2("类别")= dic(dr2)("标识")
Next