R
Rookie
I receive a txt file (in .dat extention) with multiple lines, with no tab,
comma, or any delimitations between the fields, I need to import this data to
an Access table, each field in the .dat file has a fixed position, like this:
1AB123TUP0525
1AC456GJL0565
First 3 characters are the id, so I need to import them to the id field in
my table, char 4-6 are the Department id, char 7-11 are the firmcode, and
char 12-13 are the quantity; after importing that line, pass to the next line.
How can I create a function, macro or VBA code to do this automatically?
Thanks in advance
comma, or any delimitations between the fields, I need to import this data to
an Access table, each field in the .dat file has a fixed position, like this:
1AB123TUP0525
1AC456GJL0565
First 3 characters are the id, so I need to import them to the id field in
my table, char 4-6 are the Department id, char 7-11 are the firmcode, and
char 12-13 are the quantity; after importing that line, pass to the next line.
How can I create a function, macro or VBA code to do this automatically?
Thanks in advance