Chapter 1. Getting Started: Copying The Northwind Sample Database
Chapter 1. Getting Started: Copying The Northwind Sample Database
Getting Started
Copying the Northwind Sample Database
The first thing you need to do is make a copy of the Northwind sample database to avoid altering and perhaps
permanently disabling it. You should use this copy instead of the original database while you go through this
tutorial. You can copy the Nothwind sample database from P:\ IMSE1013\Access\ Northwind.mdb to your U:
drive.
Step 2. If all goes well, you will see the opening screen of the Northwind database. Press the OK button to get
the Northwind Traders splash screen out of the way and start working with the actual Northwind database.
Page 3
We are mainly interested in the relational database aspects of Microsoft Access, so let us open the Tables tab
and look at some of the tables in the Northwind database.
Step 1. Press the tab marked Tables under the list of Objects at the left of the database window, and then
clicks ONCE on Customers to select the Customers Table.
Page 4
The tables tab of the Northwind database window with Customers selected
Step 2. Right-click the Customers Table and click Design View on the shortcut menu to view the design (table
definition) of the Customers Table. Notice the small key by CustomerID. As you have probably already
guessed, this means that CustomerID is a key field.
Page 5
Move the small vertical scroll bar at the right side of the table description window up and down, if necessary,
so you can read the names and data types of all the fields in the Customers Table.
Caution: Do not change any of the table field definitions, as you do not want to mess up the database.
(Changing table field definitions without knowing what you are doing is one of the few really bad things you
can do to a database. If you change the table field definitions, you will destroy a large part of the data in the
table.)
Step 3. After you have inspected the Customers Table design, click on the small x at the top right of the
Customers Table on its title bar to close the table definition panel and return to the Tables tab. Again, be
careful not to click on the x at the top right of the Microsoft Access title bar, or you will close Access
completely.
Page 6
The Customers Table contains only 91 records, so it is easy to scroll through the opened table and view all the
records. Move the vertical scrollbar up and down so you can inspect the data in some of the records. Move the
horizontal scrollbar back and forth to view all the fields in a given record. Then close the table by clicking on
the small x at the top right of the table on its title bar. Again, be careful not to close Access itself.
What's Next?
The next thing to do is to study how to Add and Change Data
Page 7
Step 2. Enter RSTVA in the Customer ID field. Click on the next field, the Company Name field and enter
Restaurante Villa. Then repeat this process to add the following information to the following fields of the
Restaurante Villa record: Pancho Villa to Contact Name, Manager to Contact Title, Avda. Azteca 123 to
Address, Juarez to City, Mexico to Country, (5) 555 4781 to Phone, and (5) 555 4782 to Fax. Click anywhere
outside of the new record to save it. (There will be no feedback that the new record has been saved.)
Page 8
Ready to change the Contact Title field of the Restaurante Villa record
Step 2. Use the Delete or Backspace key to erase Manager, and then type Owner in its place to make the
change. Click anywhere outside the Contact Title field to save the change. (There will be no feedback that the
change has been saved.)
Page 9
Step 2. On the Home tab, in the Records group, click the down arrow next to Delete and click Delete Record.
Page 10
Step 3. Because deleting a record is an extreme change and an irreversible process, you will be asked to
confirm the deletion. Check carefully to be sure you are deleting the correct record.
Step 4. Click Yes on the confirmation box to finish deleting the record. Observe that the Restaurante Villa
record is no longer there.
works in your favorite word processor, so I won't present you with any screen shots. Just be careful that the
cursor is located in the column of the table containing the item you are looking for, because the default is to
search only down the current column. You should practice using Find. Try moving to the first record in the
table and then finding TOMSP in the Customer ID column. Then go back to the top or the table and repeat
this for Karin Josephs in the Contact Name column.
The last thing you should do is close the Customer's Table by clicking the small x at the top right of the table
on its title bar. Be careful not to click on the x at the top right of the Microsoft Access title bar, or you will
close Access completely.
What's Next?
The next thing to do is to study Simple Queries
Page 12