I have a series of Text files that I need to read into an Access Table.
I've used DoCmd.transferDatabase in the past to import data from a single Mdb however the DoCmd.TransferText acImportFixed is kicking my butt. Especially the SpecificationName element and the need to scan multiple files.
All text files are contained in a single folder on the network. I need to be able to import the data from each text file. (Single column, 10 CHR)
Any example code would be helpful.
I've used DoCmd.transferDatabase in the past to import data from a single Mdb however the DoCmd.TransferText acImportFixed is kicking my butt. Especially the SpecificationName element and the need to scan multiple files.
All text files are contained in a single folder on the network. I need to be able to import the data from each text file. (Single column, 10 CHR)
Code:
'single file import attempt for example
DoCmd.TransferText acImportFixed, "", "tblProjectName", "\\Tnpsetup\archive\@Txt\2005-A.Txt", True, ""
' result is error
Any example code would be helpful.