J
jcvd_76
Guest
Hi all,
this is the first time i write in a forum.I've a problem with VBA and i hope someone of you can help me.
I use this piece of code to import some csv files into one new access table.
function ImportCSV()
dim input_file as variant
input_file = Dir("c:\temp\*.csv", vbSystem)
do until input_file = vbNullString
Docmd.TransferText acImportDelim, "spec", "table name","c:\temp\" & input_file, False
loop
end function
Is there a way to insert into the new table also the name of the origin sheet?(like a field)
Thanks a lot in advance,
jcvd_76
this is the first time i write in a forum.I've a problem with VBA and i hope someone of you can help me.
I use this piece of code to import some csv files into one new access table.
function ImportCSV()
dim input_file as variant
input_file = Dir("c:\temp\*.csv", vbSystem)
do until input_file = vbNullString
Docmd.TransferText acImportDelim, "spec", "table name","c:\temp\" & input_file, False
loop
end function
Is there a way to insert into the new table also the name of the origin sheet?(like a field)
Thanks a lot in advance,
jcvd_76