Dim dlg As New FolderBrowserDialog
If dlg.ShowDialog = DialogResult.Ok Then
\'挂接代码
For Each r As Row In Tables("员工").Rows
Dim name As String = r("员工编号") & ".jpg"
If FileSys.FileExists(dlg.SelectedPath & "\\" & name ) Then
FileSys.CopyFile(dlg.SelectedPath & "\\" & name, DataTables("员工信息表").DataCols("照片").DefaultFolder & "\\" & name )
r("照片") = name
End If
Next
Tables("员工").Save
End If