For Each dr1 As Row In Tables("早餐记录表").Rows Dim dr2 As DataRow = DataTables("营养素分析表_临时").AddNew() Dim fdr As DataRow = DataTables("营养素标准").find("食物名称 = '" & dr1("食物名称") & "'") If fdr IsNot Nothing For Each dc As DataCol In DataTables("营养素分析表_临时").DataCols If DataTables("营养素标准").DataCols.contains(dc.name) dr2(dc.Name) = fdr(dc.name) End If Next End If Next