Solved

MS access import delimiter csv file

Posted on 2008-10-05
1
552 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
1 Comment
 
LVL 77

Accepted Solution

by:
peter57r earned 500 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now