Dim f1 As New Filler
f1.SourceTable = DataTables("收入")
f1.SourceCols = "第五列,第六列" '指定数据来源列
f1.DataTable = DataTables("统计")
f1.DataCols = "第五列,第六列" '指定数据接收列
f1.Filter = "项目 is not null"
Dim dr As DataTable = Tables("收入")
If DataTables("统计").Find("第五列 = '" & dr.第五列 & "' And 第六列 = '" & dr.第六列 & "'")Is Nothing Then
Else
f1.Fill()
Dim f2 As New Filler
f2 = New Filler
f2.SourceTable = DataTables("成本")
f2.SourceCols = "第五列,第六列" '指定数据来源列
f2.DataTable = DataTables("统计")
f2.DataCols = "第五列,第六列" '指定数据接收列
f2.Filter = "项目 is not null"
Dim dr2 As DataTable = Tables("成本")
If DataTables("统计").Find("第五列 = '" & dr2.第五列 & "' And 第六列 = '" & dr2.第六列 & "'")Is Nothing Then
Else
f2.Fill()
老师,编译错误。。。还是不会。。。