G
Guest
Hi,
How can i show the err message during import? sometimes when the format of
the .xls file that i want to import has the feld with different format as my
tartget table "TmoImportTable", it will not import the spreadsheet and there
is no err message shown also
..
In my code below, I want to show how many .xls files have been imported.
However i can only show how many files found in the directory that i want to
import from. How can i change it so that i may show actually how many files
have been imported into my database instead of showing how many files are
there to be imported.
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
DoCmd.TransferSpreadsheet acImport, , "TmpImportTable", _
.FoundFiles(i), True
Next i
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Else
MsgBox "There were no files found."
End If
Thanks...
How can i show the err message during import? sometimes when the format of
the .xls file that i want to import has the feld with different format as my
tartget table "TmoImportTable", it will not import the spreadsheet and there
is no err message shown also
..
In my code below, I want to show how many .xls files have been imported.
However i can only show how many files found in the directory that i want to
import from. How can i change it so that i may show actually how many files
have been imported into my database instead of showing how many files are
there to be imported.
If .Execute() > 0 Then
For i = 1 To .FoundFiles.Count
DoCmd.TransferSpreadsheet acImport, , "TmpImportTable", _
.FoundFiles(i), True
Next i
MsgBox "There were " & .FoundFiles.Count & _
" file(s) found."
Else
MsgBox "There were no files found."
End If
Thanks...