I am currently using the following code:
Private Sub CmdBrowse_Click()
On Error GoTo Err_CmdBrowse_Click
Dim strFile As String
With Me.cdlgOpen
.CancelError = True
.Filter = "All Files (*.*)|*.*|"
.ShowOpen
strFile = .FileName
MsgBox strFile 'just to test the value
End With
Exit_CmdBrowse_Click:
Exit Sub
Err_CmdBrowse_Click:
MsgBox Err.Description
Resume Exit_CmdBrowse_Click
End Sub
What I want to be able to do is select multiple files at once and have their locations pumped into an array, have it list the file locations in a list box, and then run a single command to import all the CSV files as individual tables into the database. Any help???
-Jim
Private Sub CmdBrowse_Click()
On Error GoTo Err_CmdBrowse_Click
Dim strFile As String
With Me.cdlgOpen
.CancelError = True
.Filter = "All Files (*.*)|*.*|"
.ShowOpen
strFile = .FileName
MsgBox strFile 'just to test the value
End With
Exit_CmdBrowse_Click:
Exit Sub
Err_CmdBrowse_Click:
MsgBox Err.Description
Resume Exit_CmdBrowse_Click
End Sub
What I want to be able to do is select multiple files at once and have their locations pumped into an array, have it list the file locations in a list box, and then run a single command to import all the CSV files as individual tables into the database. Any help???
-Jim