Hello, I have been struggling with importing a .tsv file (Tab Delimited) into my table (tblExtractedTD). I have ran the wizard and created the Specification name (OracleSpecification) and everything was fine. I then needed to create a process:
1) Create/Open a FileDialog
2) Find my .tsv file (.tsv Tab Delimited file)
3) After selecting file and clicking "OK" (One File only allowed: .AllowMultiSelect = False)
4) Then my table (tblExtractedTD) needs cleared out for the new data but make sure a file was selected befor I do.
5) Then the file selected needs to have the extension temporarily changed to .txt for Access to import.
6) Then run the import:
I have been looking for a working example but there is very little if any info on the subject. Thanks!
Thanks,
SoggyCashew.....
1) Create/Open a FileDialog
2) Find my .tsv file (.tsv Tab Delimited file)
3) After selecting file and clicking "OK" (One File only allowed: .AllowMultiSelect = False)
4) Then my table (tblExtractedTD) needs cleared out for the new data but make sure a file was selected befor I do.
Code:
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryRemoveExtractedTDData", acViewNormal, acEdit
DoCmd.SetWarnings True
6) Then run the import:
Code:
DoCmd.TransferText , acImportDelim, "OracleSpecification", "tblExtractedTD",[b] **FILE NAME WITH THE .TXT EXT***[/b] , True
I have been looking for a working example but there is very little if any info on the subject. Thanks!
Thanks,
SoggyCashew.....