MS Access: Importing

By | Sep 3, 2010
Under: Software

MS Access is an excellent software to manage small data. Its powerful Reports and Query features enable skillful handling of the data.
Many a times you have your data in a format other than MS Access tables. For example, you are in the process of converting your older dBase Inventory Management System to MS Access. It would be preferable to use the existing data in the new system without having to re type it all.
With the Import Data feature of MS Access, data from an external source can be converted to a MS Access table format. The external source can be MS Excel, dBase, text file, SQL server, Visual FoxPro etc.

While importing data, the source file is left unchanged. A copy of the information is created in a new MS Access table. Data can be appended to an existing MS Access table only if the source is a spreadsheet or text file.

Text files come in two formats. A text file with a Delimited Format has characters like comma or tab separating each field.
A Fixed Width Format text file has data in columns of predetermined width.
Based on the type the import action varies. A wizard (a help feature) will guide you along.

Import a text file.

- Open a database where the data is to be stored.
- Click File from the Menu. Click Get External Data, then Import. Navigate to the text file to be imported and click Import to proceed.
- Select Delimited or Fixed Width file format and click Next.
- In case of Delimited format, select the correct delimiter and the Text Qualifier and click next.
- For fixed width file format, define the breaks and click next.
- Click on the appropriate radio button to choose whether the data is to be imported in a new or existing table.
- If you choose Existing Table, select the name of that table from the list supplied.
- If the aligning fields of the source and destination do not match, an error message will appear. The data will be imported to a Paste Error Table.
- If this import operation causes a duplication of Primary key fields, again an error message will appear and the import will be aborted.
- If data is imported to a new table, you are prompted to supply information about each of the fields being imported. Click on each column to display and alter the default values for Field name, Data type, Indexing and Skip Field Flag.
- Next, the user is prompted for the Primary Key for the new table. A primary key is a combination of one or more fields that uniquely identifies each record. The user has an option to define a Primary Key, do not define a Primary Key or let MS Access define a Primary Key. In the last case, an auto number field is added to the table as ID.

The import of a delimited text file is completed successfully.

Import a fixed width text file

The wizard chooses the various field breaks but the user can arrange them too. When the various columns have be modified as per requirement, click Next

Related Articles
Aug 27, 2010
If you’re trying to open one of your important business documents or spreadsheets and find the file simply won’t open, it may be corrupt. Corruption can happen to your files for any number of reasons including an unexpected shutdown, program...
Jul 23, 2010
Write It Now is a program in a league of its own. The program is helpful to the fiction writer, plus, very affordable at around $37.00 depending on current currency exchange rates. Although the company that offers Write It Now...
Dec 27, 2010
Accidental formatting of hard drives is a common reason for catastrophic data loss. The entire hard drive is erased during formatting. Or is it? If you’ve accidentally formatted your hard drive, we can help! Format data recovery software is specially...
Dec 25, 2010
If you store data on a CD-ROM disc you could be in for a big surprise when suddenly your disk is unreadable. We can help with our CD data recovery software. Using advanced technology, the CD data recovery software can...
Dec 25, 2010
Lost files don’t need to remain lost with file data recovery software. A good file data recovery software program can recover files lost due to accidental deletion, virus attacks, power surges, and even from an accidentally formatted hard drive! This...
No Comment
Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

 

© 2010 Free Articles Directory