Solved

MS access import delimiter csv file

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

809 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