A
Alan B. Densky
I'm running Access 2000.
I download files for import on a dialy basis. I would like to automatically
rename the files from a function in my database before importing them.
The file names are always different, but they follow a pattern. There are
two files in the import directory before I run the import.
C:\ImportData\C32-0852361-1.txt
C:\ImportData\C32-0852361-2.txt
The first file always starts with the letter "C" and ends with "-1.txt"
C:\ImportData\C32-0852361-1.txt
I want to change the file extention to "csv" - C32-0852361-1.csv
The second file also starts with the letter "C" and it ends in "-2.txt"
C:\ImportData\C32-0852361-2.txt
I want to append the letter "L" to the beginning of the file name, and
change the file extention to "csv" - LC32-0852361-2.csv
Can someone please give me the code for this?
Thanks in advance.
Alan
I download files for import on a dialy basis. I would like to automatically
rename the files from a function in my database before importing them.
The file names are always different, but they follow a pattern. There are
two files in the import directory before I run the import.
C:\ImportData\C32-0852361-1.txt
C:\ImportData\C32-0852361-2.txt
The first file always starts with the letter "C" and ends with "-1.txt"
C:\ImportData\C32-0852361-1.txt
I want to change the file extention to "csv" - C32-0852361-1.csv
The second file also starts with the letter "C" and it ends in "-2.txt"
C:\ImportData\C32-0852361-2.txt
I want to append the letter "L" to the beginning of the file name, and
change the file extention to "csv" - LC32-0852361-2.csv
Can someone please give me the code for this?
Thanks in advance.
Alan