Hi there,
I'm very new to VBA. Here's sample from a text file that I'd like to import into an Access table I've created. I'm using a form with a text box with the path (txtFileName) and an import button (cmdImport).
-----------------------
DataSource 429 "Map_company" Separator "," SourceType FlatFile_ColNames
CharacterSet Ansi DecimalSep " " Thousandsep " " Columns True Timing PopYesCreateDefault
Source "d:\excel\mcomp.csv" EnableMultiProcess True SetCurrent False
ServerSource False Speed False Presummarized False
---------------------------
I need a function that will go through the file line by line. Once it reaches a line that begins with "Source" it will copy the path "d:\excel\mcomp.csv" to the table (tbl_Values) with only 1 field (Source).
Thanks in advance.
TN
I'm very new to VBA. Here's sample from a text file that I'd like to import into an Access table I've created. I'm using a form with a text box with the path (txtFileName) and an import button (cmdImport).
-----------------------
DataSource 429 "Map_company" Separator "," SourceType FlatFile_ColNames
CharacterSet Ansi DecimalSep " " Thousandsep " " Columns True Timing PopYesCreateDefault
Source "d:\excel\mcomp.csv" EnableMultiProcess True SetCurrent False
ServerSource False Speed False Presummarized False
---------------------------
I need a function that will go through the file line by line. Once it reaches a line that begins with "Source" it will copy the path "d:\excel\mcomp.csv" to the table (tbl_Values) with only 1 field (Source).
Thanks in advance.
TN