Article View: comp.databases.ms-access
Article #14Re: How to import multi-line record text file into Access?
From: Paddi Iranzad
Date: Tue, 05 Jan 1999 00:00
Date: Tue, 05 Jan 1999 00:00
32 lines
2138 bytes
2138 bytes
You can import without using the wizard using macros: TransferText is for importing text TransferSpreadsheet is for importing from Excel TransferDatabase is for importing from another database. The same commands can be used from a module if you can program. To import only a certain number of lines from a file then you can do that using code. Try using File Input/Output (I/O) and then Line Input. john hayes wrote in message <3692698D.AE9@earthlink.net>... >I need to import a text data file which has 2 lines per record, into >Access. I have tried the Import Wizard, but it does not seem to support >multi-line records. I see that you can save/load a format spec >for a file, but I didn't see if it saves the spec in a file that >I can manipulate (or create from scratch) - it seems to save the spec >internally? Also, I don't know the syntax requirements for such a >spec file (not in the book). > >Can anyone tell me how to tell Access that it needs to load multi-line >records from a text file? BTW - editing the text file to make single- >line records is not an option, since the data file is created that >way by a canned vendor module and will have to be loaded periodically >on-going. > >Also, is there a way to import without going through the Wizard? > >Thanks! > >John Hayes >aikosys@earthlink.net >
Technical Details
Message-ID:
<76u32p$lrd$1@news5.svr.pol.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3692698D.AE9@earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff0ac,36002617d1beb0ca X-Google-Attributes: gidff0ac,public X-Google-Thread: 1668c5,36002617d1beb0ca X-Google-Attributes: gid1668c5,public From: "Paddi Iranzad" <piranzad@enquire-systems.freeserve.co.uk> Subject: Re: How to import multi-line record text file into Access? Date: 1999/01/05 Message-ID: <76u32p$lrd$1@news5.svr.pol.co.uk> X-Deja-AN: 429171546 References: <3692698D.AE9@earthlink.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@theplanet.net X-Trace: news5.svr.pol.co.uk 915574681 22381 62.136.57.177 (5 Jan 1999 22:18:01 GMT) Organization: Customer of Planet Online NNTP-Posting-Date: 5 Jan 1999 22:18:01 GMT Newsgroups: comp.databases.ms-access,at.fido.msaccess