G
Guest
Hiya,
I need to import data from text files into a database... but it's a bit
complicated:
1. The data for each table is actually in more than one text file. Is there
a way that in VBA I can create a new text file that joins existing text files
together. I will need to join any text files ending in a particular phrase eg
'...JAN04.TXT'.
2. The data inside the text files is from a really really old system that
was meant for line printers - hence I will need to go through the new
document line by line and try and find a method to translate everything - it
will also probably contain non-printable characters (so maybe I'll have to go
through it character by character to replace the non-printable characters).
Am I thinking along the right lines, and will it take forever given that
there will be thousands and thousands of rows? Can anyone give me a headstart
in doing this?
Many thanks,
Basil
I need to import data from text files into a database... but it's a bit
complicated:
1. The data for each table is actually in more than one text file. Is there
a way that in VBA I can create a new text file that joins existing text files
together. I will need to join any text files ending in a particular phrase eg
'...JAN04.TXT'.
2. The data inside the text files is from a really really old system that
was meant for line printers - hence I will need to go through the new
document line by line and try and find a method to translate everything - it
will also probably contain non-printable characters (so maybe I'll have to go
through it character by character to replace the non-printable characters).
Am I thinking along the right lines, and will it take forever given that
there will be thousands and thousands of rows? Can anyone give me a headstart
in doing this?
Many thanks,
Basil