Solved

MS access import delimiter csv file

Posted on 2008-10-05
1
553 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

910 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

23 Experts available now in Live!

Get 1:1 Help Now