Hello friends,
I am attempting to import a text file into my Access dB I would like to get additional help on how to manipulate the layout of the data within that file. A sample file would look like the following with "LocCode" being the column heading:
LocCode
R01CODE1
F00111111
F00222222
F00333456
R01CODE9
MISCELLANEOUS
JUNK
F00444444
What I would like to do is separate this one-columned text file into 2 separate columns where any record that begins with "R01" will occupy the first column. Any data afterward will occupy the second column until the next "R01" is read. The desired outcome would be as follow with "Data" as the 2nd column's heading:
LocCode Data
R01CODE1 F00111111
R01CODE1 F00222222
R01CODE1 F00333456
R01CODE9 MISCELLANEOUS
R01CODE9 JUNK
R01CODE9 F00444444
I hope my rambling made a little sense. Please let me know if I can clarify anything. Thanks for reading and lending a helping hand.
I am attempting to import a text file into my Access dB I would like to get additional help on how to manipulate the layout of the data within that file. A sample file would look like the following with "LocCode" being the column heading:
LocCode
R01CODE1
F00111111
F00222222
F00333456
R01CODE9
MISCELLANEOUS
JUNK
F00444444
What I would like to do is separate this one-columned text file into 2 separate columns where any record that begins with "R01" will occupy the first column. Any data afterward will occupy the second column until the next "R01" is read. The desired outcome would be as follow with "Data" as the 2nd column's heading:
LocCode Data
R01CODE1 F00111111
R01CODE1 F00222222
R01CODE1 F00333456
R01CODE9 MISCELLANEOUS
R01CODE9 JUNK
R01CODE9 F00444444
I hope my rambling made a little sense. Please let me know if I can clarify anything. Thanks for reading and lending a helping hand.