472,800 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,800 software developers and data experts.

importing an RTF comma delimited file

I have never done this and wanted to ask people who have what is the
best way.
One person said import it to excel, then import it into access table.

but since this will be done a lot, I am trying to avoid this extra
step.

can access read in this file directly into a table as append data?

thank you very much for any pointers

jerry

Nov 12 '05 #1
1 3554
Yes!
Import or link a delimited or fixed-width text file
Note You can link a table only in a Microsoft Access database, not a
Microsoft Access project.

Important Before you import or link data from a delimited text file or
fixed-width text file, make sure that the file has the same type of data in
each field and the same fields in every row.

1.. Open a database, or switch to the Database window for the open
database.
2.. To import data, on the File menu, point to Get External Data, and then
click Import.
To link data, on the File menu, point to Get External Data, and then click
Link Tables.

3.. In the Import (or Link) dialog box, in the Files Of Type box, select
Text Files (*.txt;*.csv;*.tab;*.asc).
4.. Click the arrow to the right of the Look In box, select the drive and
folder where the file is located, and then double-click its icon.
Important If you link to a file on a local area network, make sure that
you use a universal naming convention (UNC) path, instead of relying on the
drive letter of a mapped network drive in Windows Explorer. A drive letter
can vary on a computer, or it may not always be defined; whereas, a UNC path
is a reliable and consistent way for Microsoft Access to locate the data
source that contains the linked table.

5.. Follow the directions in the Import Text Wizard dialog boxes. Click
Advanced to create or use an import/export specification.
Notes

a.. Although you usually create a new table in Microsoft Access for the
data, you can append the data to an existing table as long as the first row
of your text file contains matching field names.
b.. If importing a text file takes an unexpectedly long time, it might be
because many errors are occurring. To cancel importing, press CTRL+BREAK.
c.. In a fixed-width text file, you can ignore fields at the end of a
record that contain no data. In addition, the last field with data in the
record can be less than the maximum width.
d.. If all the records in a fixed-width text file are the same length,
there can be an embedded row separator (such as a carriage return and
linefeed) in the middle of a record. If the records aren't all the same
length, embedded row separators should not be used because Microsoft Access
will treat the embedded row separator as the end of the record--
Reggie

www.smittysinet.com
----------
"sparks" <sp****@here.com> wrote in message
news:ig********************************@4ax.com...
I have never done this and wanted to ask people who have what is the
best way.
One person said import it to excel, then import it into access table.

but since this will be done a lot, I am trying to avoid this extra
step.

can access read in this file directly into a table as append data?

thank you very much for any pointers

jerry

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Elmo Watson | last post by:
I've been asked to develop a semi-automated type situation where we have a database table (sql server) and periodically, there will be a comma delimited file from which we need to import the data,...
2
by: Debbie CD UK | last post by:
I have a large amount of log files from an electronic contro tester that I need to import in to an Access database Unfortunately, they are not comma delimited or fixed with but different fields...
8
by: harry | last post by:
Hi Folks: I'm trying to do something that looks simple, but I can't make it work right. It's Access 2000 on a Win2000 computer. I create a database with 5 columbs. The data I need to import...
1
by: don | last post by:
I'm trying to import a comma delimited text file into MS Access 2002 version - the first column is set for an auto increment primary key and everything works right the first time I import a text...
4
by: Kathie via AccessMonster.com | last post by:
Hello, I have to import monthly, files that were once *.csv but due to commas in addresses, the interface program was changed to dump tab delimited. Now my code is not finding the files in the...
4
by: JustSomeGuy | last post by:
Hi. I have a comma delimited text file that I want to parse. I was going to use fscanf from the C library but as my app is written in C++ I thought I'd use the std io stream library... My Text...
2
by: denisel | last post by:
Hi, We will be conducting surveys through SurveyMonkey online and will be importing the answers by tab delimited or comma delimited file into access. I was wondering if there is specific way to...
1
by: puremetal33 | last post by:
I have worked very little with Access and have hit a snag. My task right now is to import the data from a spreadsheet into an existing table in an Access database. I edited the .xls file so that...
1
by: Anthony1312002 | last post by:
I have a working script that imports a space or tab delimited textfile using the vbTab attribute. But because of an upgrade the file has now become comma delimited. what would I need to change to...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.