Dim dlg As New OpenFileDialog
dlg.Filter = "Access文件|*.mdb"
dlg.MultiSelect = True '允许选择多个文件
If dlg.ShowDialog =DialogResult.OK Then
For Each fl As String In dlg.FileNames
Dim mg As New Merger
mg.SourcePath = fl
mg.SourceTableName = "商品库"
mg.DataTableName = "商品库"
mg.Merge()
mg = New Merger
mg.SourcePath = fl
mg.SourceTableName = "员工信息"
mg.DataTableName = "员工信息"
mg.Merge()
Next
End If