-- 作者:chh2321
-- 发布时间:2021/8/26 9:11:00
--
Dim dlg as New SaveFileDialog
dlg.Filter= “Access文件|*.mdb”
If dlg.ShowDailog = DialogResult.OK Then
Dim ex As New Exporter
Ex.SourceTableName = “表1“
Ex.filepath = dlg.FileName
Ex.Filter = “[项目编号] =
‘项目1’”
Ex.Export()
Ex = New Exporter
Ex.SourceTableName = “表2“
Ex.filepath = dlg.FileName
For Each blh as DataRow In DataTables(“表1”).DataRows
Ex.Filter = “[ID] = ‘” & blh(“ID”) & ”’”
Next
Ex.Export()
Ex = New Exporter
Ex.SourceTableName = “表3“
Ex.filepath = dlg.FileName
For Each dr as DataRow In DataTables(“表1”).DataRows
Ex.Filter = “[ID] = ‘” & dr(“ID”) & ”’”
Next
Ex.Export()
End If
[此贴子已经被作者于2021/8/26 9:15:09编辑过]
|