O
ondvirg via AccessMonster.com
I have multiple .XLS files in a directory that have the same name except for
the last character that I'd like to import into a table.
I can use this code:
DoCmd.TransferSpreadsheet acImport, 8, "Bill Direct", [SubDirectory] &
"pclI083D001.xls", True, "A4254"
to transfer a specified file name, but would like to import all files at once.
I've tried using:
DoCmd.TransferSpreadsheet acImport, 8, "Bill Direct", [SubDirectory] &
"pclI083D00" & "*", True, "A4254"
But get errors. Is there a way to code for this?
the last character that I'd like to import into a table.
I can use this code:
DoCmd.TransferSpreadsheet acImport, 8, "Bill Direct", [SubDirectory] &
"pclI083D001.xls", True, "A4254"
to transfer a specified file name, but would like to import all files at once.
I've tried using:
DoCmd.TransferSpreadsheet acImport, 8, "Bill Direct", [SubDirectory] &
"pclI083D00" & "*", True, "A4254"
But get errors. Is there a way to code for this?