Solved

Import Text Files into an Microsoft Access Database

Posted on 2002-07-02
3
271 Views
Last Modified: 2010-04-04
Which data access component can I use to access the content of a delimited text file, in order to use it in the batch move component in the source property?
0
Comment
Question by:sigalos
[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
3 Comments
 
LVL 44

Accepted Solution

by:
CrazyOne earned 100 total points
ID: 7125818
It depends on what the delimiter is and if it uses end of line like a paragraph break to denote where one record ends an the next one starts. Generally speaking for data in a delimited text file to be moved to an Access database through Delphi the fields in the text file need to be as to what data type of each field is in a schema file. If the a field data type is a text fiels then that field would need in the schema file to be identified to what the lenght of the field is.

Something like this

Width of Field, Decimal Points, Starting cursor position

[CmmssTbl]
Filetype=Fixed
Field1=CopyDUKey,Long Integer,11,00,00
Field2=TravType,Char,01,00,11
Field3=RevType,Char,01,00,12
Field4=Provider,Char,10,00,13
Field5=ShortCode,Char,03,00,23
Field6=DomInt,Char,01,00,26
Field7=Origin,Char,03,00,27
Field8=Destination,Char,03,00,30
Field9=FromDate,TimeStamp,30,00,33
Field10=ThruDate,TimeStamp,30,00,63
Field11=Amount,Float,20,02,93
Field12=OneCap,Long Integer,11,00,113
Field13=RoundCap,Long Integer,11,00,124
Field14=MaxDiscount,Float,20,02,135
Field15=Where,Char,10,00,155
Field16=Class,Char,02,00,165
Field17=FareBasis,Char,08,00,167
Field18=NoCCCo,Char,19,00,175
CharSet=ascii


The Crazy One
0
 

Expert Comment

by:CleanupPing
ID: 9343121
sigalos:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9459953
sigalos,
No comment has been added lately (18 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to CrazyOne http:#7125818

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 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