I am transfering Excel files File_1, File_2, File_3 ... File_n into a table, these files have the same format but different data.
Fm_Transfer has a button to do the automatic transfer with following code:
Dim n As Integer
Dim cntBook As String
Dim vPath As String
Dim vFile As String
n = 1
cntBook = ""
vPath = "C:\Database\"
vFile = ""
For n = 1 To 360
cntBook = "File_" & n
vFile = vPath & cntBook
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Tbl_File", vFile, True
On Error GoTo X
Next n
How can I visualize in a this form (Fm_Transfer) which Excel file is Access tranferring?,
Like "Now transferring File_1, File_2, etc ....."
Thanks.
Fm_Transfer has a button to do the automatic transfer with following code:
Dim n As Integer
Dim cntBook As String
Dim vPath As String
Dim vFile As String
n = 1
cntBook = ""
vPath = "C:\Database\"
vFile = ""
For n = 1 To 360
cntBook = "File_" & n
vFile = vPath & cntBook
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "Tbl_File", vFile, True
On Error GoTo X
Next n
How can I visualize in a this form (Fm_Transfer) which Excel file is Access tranferring?,
Like "Now transferring File_1, File_2, etc ....."
Thanks.