S
susannne
Guest
hi all,
im searching for a solution to import several hundred files into an access tbl.
it are .txt files, with a specific name, which should be together with the content be imported.
bruno.txt
[
234
456
345]
and i would like to see the table like:
name |costs
-----------------
bruno 234
bruno 456
bruno 345
i allready found a way to only im port the content, but to import the filename also, which is very important doesnt work.
DoCmd.TransferText acImportDelim, , "tblTmp", Me!Path + "bruno.txt"
that will together with a
DB.Execute "INSERT INTO tblCosts(costs) " & _
"select F1 from tblTmp"
do it.
can anyone help ?
Thx
im searching for a solution to import several hundred files into an access tbl.
it are .txt files, with a specific name, which should be together with the content be imported.
bruno.txt
[
234
456
345]
and i would like to see the table like:
name |costs
-----------------
bruno 234
bruno 456
bruno 345
i allready found a way to only im port the content, but to import the filename also, which is very important doesnt work.
DoCmd.TransferText acImportDelim, , "tblTmp", Me!Path + "bruno.txt"
that will together with a
DB.Execute "INSERT INTO tblCosts(costs) " & _
"select F1 from tblTmp"
do it.
can anyone help ?
Thx