G
Gina
Hi,
I was wondering if there was a way of allowing MS Access to select multiple
files located on my PC in Windows explorer and insert them in a table in my
Access database, each file in a separate record.
Using the dialog box I am able to select one file at a time. This is
cumbersome. I need to select multiple files. This is what I have so far.
Dim strFilename As String
Dim HFileName As Variant
Dim oDialog As Object
Set oDialog = [Forms]![frmCheckForTables]!xDialog.Object
With oDialog
.DialogTitle = "Please Select Data File"
.FileName = ""
.Filter = "All(*.*)|*.*"
.FilterIndex = 1
.ShowOpen
If Len(.FileName) > 0 Then
[Forms]![frmCheckForTables]![DBPath] = .FileName
Else
Exit Sub
End If
End With
I may be asking for a lot. If you could give me a lead, I would be
extremely grateful.
Regards,
Gina
I was wondering if there was a way of allowing MS Access to select multiple
files located on my PC in Windows explorer and insert them in a table in my
Access database, each file in a separate record.
Using the dialog box I am able to select one file at a time. This is
cumbersome. I need to select multiple files. This is what I have so far.
Dim strFilename As String
Dim HFileName As Variant
Dim oDialog As Object
Set oDialog = [Forms]![frmCheckForTables]!xDialog.Object
With oDialog
.DialogTitle = "Please Select Data File"
.FileName = ""
.Filter = "All(*.*)|*.*"
.FilterIndex = 1
.ShowOpen
If Len(.FileName) > 0 Then
[Forms]![frmCheckForTables]![DBPath] = .FileName
Else
Exit Sub
End If
End With
I may be asking for a lot. If you could give me a lead, I would be
extremely grateful.
Regards,
Gina