Beruflich Dokumente
Kultur Dokumente
MS ACCESS 2003
SHARING DATA
Sharing Data
Background Reading
Why is it important for a database to be able to share data with other programs?
A DBMS (database management system) such as Microsoft Access is made for storing and analyzing
data. However, the data kept in Access is often needed in other programs. A word processor, for
example, may need it to create documents and presentations, a spreadsheet may need it for advanced
numerical analysis, a Web browser may need to display it from the Internet, and so on. A good database
program, therefore, must be able to import and export data in a variety of formats.
Access has this capability.
For a complete list of file formats that Access can import and
export, go to Help and search for import data and export data.
The exercises below give you practice the following import/export options of Access.
• import data from Excel (no field titles)
• import data from Excel (with field titles)
• export data to Excel
• export data to a Word table
• import data from / export data to a delimited text file
Notice that it looks similar to a table in Access but without field names (in Excel this kind of database
is called a list).
2. Save the file as ClassicalCDs.xls.
3. Start Access and create a new database named ClassicalCds.mdb.
4. Select File / Get External Data.
5. Click on Import. The Import dialog box opens.
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 1 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 2 of 8
MS ACCESS 2003
SHARING DATA
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 2 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 3 of 8
MS ACCESS 2003
SHARING DATA
16. in Design View. Rename the Field1 column heading Title and change the Field Size to 40.
Rename and adjust the other column headings as follows: Recording Company (Field Size 30),
Composer (Field Size 30), Artist (Field Size 30), Price (Data Type: Currency).
Access is warning you that you have reduced the size of some fields from 255 to 40 characters. It
would cut off all data in those fields after the 40th character. You can click on Yes because your data
fits easily into the 40-character limit.
19. Select View / Datasheet View.
20. Adjust the column widths so that all the data can be seen.
21. Save and close the table.
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 3 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 4 of 8
MS ACCESS 2003
SHARING DATA
3. Use the procedures above to import ClassicalCDs2.xls into ClassicalCDs2.mdb.as a table named
CDs2 with one difference — be sure to select the option First Row Contains Column Headings.
Note: Some Excel worksheets/lists will require editing before importing into Access.
For example, if there are several top rows with different kinds of titles, some rows might have to be
deleted to leave just the one set of titles you want.
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 4 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 5 of 8
MS ACCESS 2003
SHARING DATA
The example below shows the same data in comma-delimited format. Field contents are placed
between quotation marks and separated by commas. The comma is called the delimiter. (Other common
delimiters are tabs and semi-colons.) Notice that there is no space before and after each comma.
"Title","Author","Publisher","Price"¶
"Business English: A Complete Guide","Andrea B. Geffner","Barron's Educational Series, Incorporated","$17.95"¶
"Writing Business Letters For Dummies","Sheryl Lindsell-Roberts","John Wiley & Sons"," $27.99"¶
1. Copy the above text (you will find it at from http://schools.tdsb.on.ca/jarvisci/commaDB.txt), paste
into Notepad.
2. Save as a text file named commaDB.txt.
3. Create a new Access database named commaDB.mdb.
4. Use what you know about importing an Excel file to begin importing the comma-delimited file
commDB.txt into Access. Read each of the screens carefully while you work.
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 5 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 6 of 8
MS ACCESS 2003
SHARING DATA
5. When navigating to find your delimited file, commaDB.txt, be sure to select File Type: Text Files
(.*txt, *.csv, *.tab, *.asc).
6. Notice that the Import Text Wizard recognizes that the file is delimited.
7. It also recognizes that the file is comma-delimited (not tab-, semi-colon-, or space-delimited).
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 6 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 7 of 8
MS ACCESS 2003
SHARING DATA
2. Export the table as a semicolon-delimited text file named commaDBplus3.txt with field names on
the first row (File / Export / Save As: text file . . .etc.)
3. Open the file in Notepad. Below the data add your name, BTA301, your period and your teacher’s
name. Save the file.
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 7 of 8
BTA3O1 – Productivity Software – Unit 3: Database – Part 2: Sharing Data– Page 8 of 8
MS ACCESS 2003
SHARING DATA
The procedure for exporting a delimited text file will be quite straightforward now that you have learned
the procedures for importing a delimited text file.
2. Export the table as a semicolon-delimited text file named commaDBplus3.txt with field names on
the first row (File / Export / Save As: text file . . .etc.)
3. Open the file in Notepad. Below the data add your name, BTA3O1, your period and your
teacher’s name. (On a test you might be asked to print a file like this one.)
BTA3O1 Information and Communication Technology: The Digital Environment- Productivity Software
Unit 3: Database – Part 2: Sharing Data– Page 8 of 8