Solved

MS access import delimiter csv file

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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 …

710 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