Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MS access import delimiter csv file

Posted on 2008-10-05
1
Medium Priority
?
565 Views
Last Modified: 2012-08-14
I've a piped delimiter file in csv format. I want to import that file to ms access thru VBA. But don't know how to seperate "|" into different columns.
- Column headings are not required.
- First column should be "text" datatype and remaing should be "long integer".

I tried  DoCmd.TransferText acImportDelim....
But all imported data comes to one column only with "|" seperators. I want each fields to go to a seperate column based on the "|" seperator.
0
Comment
Question by:iceb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 77

Accepted Solution

by:
peter57r earned 1500 total points
ID: 22648175
You have to create an Import Spec by doing the import manually once and saving all the settings you use.

Click on the Advanced button in the File>GetexternalData>import and you can then apply your settings and save them with a name you use in your transfertext command.


0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question