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
dr2("重量") = dr1("重量")
Next