Question : How do I import a text file into MS Access which appears to have verticle and hortintals breaks

Greeting experts!  This one stumps me.

Ginniemae has released a new file format that we will need to import each month.  There is a fixed width component, easy enough, but the file also appears to have record breaks down in the body of file.  The file format can be viewed on page 2 at :http://www.ginniemae.gov/issuers/GinnieNET_Single_Family_File_Layout.pdf

I have also included a screen shot in a word doc.  I would need to capture the data from M01 to M01 as the identifier tha a new record is comming in.  It would appear if I could somehow tell it to break after M10 each time, that would work, but do not know how that would need to be done.    I only need data from line M01.

This is an extremly critical task and appriciate any assistance!
Thanks

Answer : How do I import a text file into MS Access which appears to have verticle and hortintals breaks

OK, this is maybe another question.
Without creating the code, the short answer to this is "Maybe, if:
The locations of the desired items are always within the same location in each line. And,
all lines you are interested in begin with P03, P04, and P20.  And,
P03 & P04 have one or more spaces after 'P03' ('P04') before the first data elements. And,
P20 has a single string, with crtical data always in the same location within that string."

A lot of these (and other) questions would be answered by whoever put together the file structure. Armed with this knowledge, you have the logic of
Open file of this name type
go through each line until there are no more lines
Check if first three characters of line are P03, P04, P20.  If so, check if it s P03
If so, get the last n digts from the nth element and populate a variable
Then, go to next line.  Ensure it begins with P04.  If so, Get last n digitds of nth element in that line and populate a variable.
Then, line input until lne begins with 'P20',

etc, etc.  

Are you the one expected to create the code/applcation?  As I re-read your oiginal question, and look at the first doc you attached, I feel for the fact you can't change how they format data. Without amplifying info, it is useless.
And, it is another question totally.  Much greater complexity this time.
Random Solutions  
 
programming4us programming4us