DataTables("统计表2").DataCols.Add("排序编号", Gettype(String))\' 增加临时列排序编号
Dim dr1 As DataRow = Tables("统计表2").Current.DataRow
Dim dr2 As DataRow
dr2 = DataTables("项目明细").Find("[项目简称] = \'" & dr1("项目简称") & "\'")
If dr2 IsNot Nothing Then
For Each dr As Row In Tables("统计表2").Rows
dr("排序编号") = dr2("简称代码")
Next
此主题相关图片如下:qq图片20160804173935.png