 |
|
 |
Importing Excel Files into Access
|
- Open Excel and prepare the file in a database format.
- In this format the top row will be the row headings, or field names.
- Either clear off any cells that you do not wish to import or copy the
ones that you do to another worksheet.
- Save the file.
- Remember the name of the worksheet and the file and its location.
- Open Access
- Either create a new database, or open an existing one, depending on where
you wish to place the Excel file.
- On the menu click on File > Get External Data > Import
- On the bottom of the Import window drop down the window next to "Files
of type:" and select Microsoft Excel.
- If the name of the file you wish to import is not visible in the import
window, browse to the folder where it is located.
- Click on it to select it.
- Click on import in the lower right corner of the screen.
- Select the worksheet from the pop up window. (Or if you
have named a range click on that on the top and select it.)
- Click next.
- If you get a message that the first row contains some data that can't be
used for valid field names click OK to let the wizard assign valid field names.
(You can clean this up later.)
- If the box "First Row Contains Headings" is not checked, check
it. (Assuming of course that this is so. If not, Access will
name the fields, Field 1, Field 2, etc.)
- Click Next.
- Select "In a new table" and click next.
- To change the name of a field while importing
- Select the field whose name you wish to change by clicking anywhere
in that column,
- Type a new name in the selected box on the pop-up window.
- Continue until all field names are named as you desire.
- Click Next.
- Make a choice about the primary key as per the window and click Next
- Enter the name you wish for this table and click Finish.
- You will receive a message that Access has finished importing the file.
Click OK. (If the Excel file was not set up properly, and
you get an error message, open up Excel and prepare the file as in Step 1.)
- If there were blank lines in the Excel file you may wish to delete these
"records."
Last Updated:
June 18, 2004
For questions or broken links please email the author
.

Copyright 2003/2008 Linda Q. Thede
All rights reserved