Post a couple of rows of the text file here.
Main Topics
Browse All TopicsI am trying to insert fields of data into access but the only problem that I am having is finding the delimiter to seperate the fields. Tab, Semicolon, Comm and Space doesn't work but when I click on other while trying to import files..the fields are finally seperated from each other and seem that they can be placed into the table perfectly. When I click next, I get the message that states, "Field Delimiter can't be blank." So what do I do?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Strange, it opened without a problem. BTW, There is no field separator. This is a fixed width file. You have to open the text file and remove the top portion that is not data. Save the file, exit, open Access, File, Get External Data..., Import, set the Type to CSV, Text, etc., when the Wizard opens, check Fixed width, and go from there.
Here is a revision of the attached file. Each "page" of information consists of 45 records and there are over 120 pages of information. What I would like to do is just grab the table data information and run from there. You may notice that the first page of 45 records are the same as the second page, please ignore this. There are unique records for every record recorded from here. Please see attached file.
Or, if your header is of a fixed format then you'll always know when your data actually starts.
So, in theory:
'Start Import
'Loop through lines until you get to "Patient #"
If Left(Data, 9) = "Patient #" then
'Go to current Line + 8
If IsNumeric(Left(Data, 8) then
'Loop through rows collecting data until Left
Else
'Encountered header on page 2 or file is finished
end if
I borrowed this example from here (http://www.experts-exchan
Ok, so this example is just a rough outline, but basically you'd just put a loop in for the number of rows you wanted to skip. (If you only wanted to get to the next line, then you wouldn't need the loop) Every time you use the ReadLine command, it automatically goes to the next line.
Business Accounts
Answer for Membership
by: TorrwinPosted on 2009-11-05 at 12:31:09ID: 25753646
I would import the file into MS Excel first, it has a very good delimited parsing wizard. If all goes well, you can then save as an Excel file and import into Access from there.