BeforeAddFile事件,参考代码
e.cancel = True
Dim dlg As new OpenFileDialog
dlg.Filter = "ALL files(*.*)|*.*|PDF文件(*.pdf)|*.pdf|EXCEL文件(*.xls)|*.xls|EXCEL文件(*.xlsx)|*.xlsx|EXCEL文件(*.xlsm)|*xlsm|WORD文件(*.doc)|*.doc|WORD文件(*.docx)|*.docx|WORD文件(*.docm)|*.docm"
If dlg.ShowDialog = DialogResult.OK Then
Dim t As Table = Tables("表A")
t.current(t.cols(t.ColSel).name) &= iif(t.current.isnull(t.cols(t.ColSel).name), dlg.FileName, vbcrlf & dlg.FileName)
End If