Learning Microsoft Access 2007 - Introduction
Learning Microsoft Access 2007 - Introduction
Learning
®
2007
By Greg Bowden
PUBLISHED BY
www.gct.com.au
© Greg Bowden
Every effort has been made to ensure that images used in this
publication are free of copyright, but there may be instances where
this has not been possible. Guided Computer Tutorials would
welcome any information that would redress this situation.
Learning Microsoft Access 2007
Module 1 Contents
Module 2 Contents
1
Introduction to Microsoft Access
Data is simply a collection of characters (that is, letters, numbers and symbols)
which, on their own, have no particular meaning. When data about a particular
topic is stored it is said to be a database. A database allows data to be processed
into information, something that can be communicated and understood.
There are two different types of databases:
• those that already contain data and just allow you to obtain information from
them. You are not able to make any changes to the data. These are called
CLOSED DATABASES.
• those that allow you to enter and change the data and process it. These are
called OPEN DATABASES.
Microsoft Access is an OPEN DATABASE.
Some databases that we use in everyday life are: the telephone book, a dictionary,
an atlas, a bus timetable, etc. Data within a database is usually divided into
categories or sections, called FIELDS. The fields that the telephone book is divided
into are:
Surname, Initials, Street Number, Street Name, Suburb, Telephone Number
These FIELDS can vary in length depending on how much data (characters) needs
to be placed into them. For example, an Initials field does not need as much space
as a Surname field.
One complete set of fields is termed a RECORD. For example, each subscriber’s
details in the phone book is a record. There are over 1 000 000 records in the
Melbourne telephone book.
A group of records on a particular subject is called a FILE. For example, the phone
book is divided into two FILES, white pages and yellow pages.
New Database
Button
Sample Database
Templates
2 The RECENT DATABASE panel at the right of the window allows you to quickly
open recently used files.
NOTE: Once you are familiar with creating Access databases you can use
these templates to quickly setup the type of database you require.
You can also find templates online using the FROM MICROSOFT
OFFICE ONLINE section.
An Access database is made up of TABLES where you enter the data, QUERIES where
you ask questions of the data, FORMS where you make the data easier to view and edit,
and REPORTS where you print the data. These sections will be covered in the next few
chapters.
Creating a Table
Tables (or lists) are the main way of displaying data in Microsoft Access. All data is stored
in tables. The one database can have many different tables, but each table should
concentrate on the one subject. For example, the products that a company sells or the
customers that the company has. The ROWS in the table represent the RECORDS of the
database. The COLUMNS represent the FIELDS.
Let’s create a database for a bank that records the names, addresses and annual incomes
for clients taking out personal loans. The first step in creating a database is to enter the
FIELDS (the categories or sections into which the data is divided).
You can type the field names directly into the Work pane area like you would in a
spreadsheet. However, usually you will want to set the field types and formats so it is
better to enter the table in DESIGN VIEW.
NOTE: DESIGN VIEW allows you to enter the field names, their data type
(for example, text, number, date/time, etc.) and to make comments
to remind users about what the field stores.
3 In the DATA TYPE column you will be provided with the AUTONUMBER TYPE as the
program is expecting a record number or code number field. In this case we are
creating a simple database so the field will need to be set to TEXT.
NOTE: You can use the arrow keys on the keyboard to move the cursor
from cell to cell):
NOTE: i You can press the first letter of a DATA TYPE to insert it. For
example, pressing d will insert DATE/TIME.
ii Access does not like reserved words to be used as field names. So
using just DATE as the field name is not recommended.
1-10 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
Entering a Record
Once the FIELDS have been defined you are ready to start entering the data. At the
moment the screen is in DESIGN VIEW. To enter data the screen must be changed to
DATASHEET VIEW.
NOTE: i The box to the left of ‘Carol’ contains the pencil symbol to
indicate that you are writing data into the database. Whilst the
pencil symbol is displayed, the data in that record is not saved.
ii The asterisk symbol at the start of the next row indicates a
new record can be entered. Microsoft Access automatically adds
a blank record to the end of the table as you add data.
iii Pressing the TAB key moves the cursor to the next field. The
<enter> key can also be pressed or you can use the arrow keys on
the keyboard.
iv Holding down the SHIFT key and pressing the TAB key moves
the cursor to the previous field. The left arrow key can also be
pressed.
v If you make a mistake when entering data, use the I-Beam to
highlight the mistake and type in the correction.
NOTE: The symbols at the left of the table should have changed to just
an asterisk marker. This indicates that RECORD 2 is selected. The
pencil symbol has been removed from RECORD 1 indicating that its
data has been saved.
1-12 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
3 Reduce the width of the SURNAME field by about half a centimetre.
5 Increase the width of the ADDRESS
field so that all of the address data is
visible.
7 You have made changes to the appearance of the table. The data has been saved,
but not the adjustments to the column widths. Click on the SAVE button in the
QUICK ACCESS TOOLBAR to save the changes you have made to the table.
NOTE: Once you press the TAB key after the LOAN data, the program has
automatically saved the second record.
2 Enter the following data using the TAB key to move to each field:
Gary Kane M 8 Newell Road Surrey Hills 3127 4 Sep 2008 32000 3200
Paula Douglas F 216 Main Road Clayton 3168 6 Sep 2008 35000 3500
NOTE: You can adjust the width of the columns to best fit to ensure that all
the data is displayed.
1-14 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
NOTE: Double clicking the mouse button with the pointer or I-Beam over
the name will also select it.
C Deleting a Record
Paula Mason has been able to pay back her loan so her details can be removed from the
database.
1-16 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
NOTE: Be careful with deleting records. Once a record has been deleted it
cannot be retrieved. If you delete a record by mistake it will need
to be re-entered into the database.
3 Print a copy of the table if you wish or click on the CLOSE PRINT PREVIEW icon in
the RIBBON to close the preview window.
1-18 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
NOTE: i The PAGE UP key on the keyboard sets the cursor to the
beginning of a column (field).
ii The PAGE DOWN key sets the cursor to the end of a column.
iii The HOME key sets the cursor to the beginning of a row (record).
iv The END key sets the cursor to the end of a row (record).
1-20 © Guided Computer Tutorials 2008
Introduction to Microsoft Access 1
2 If changes have been made to the table
since your last save, you will be asked
whether to save the changes. Select
YES.
NOTE: CTRL+F4 can be pressed to close a table then ALT+F4 can be pressed
to close the program.
Databases Assignment 1
You are required to set up a wages database for a clothing factory. You will be required
to create a table, define fields, enter some data, make changes to the data and print the
table.
1 Start a new BLANK DATABASE, called ASSIGNMENT 1. Save the table as PAY DETAILS
and enter the following fields with the indicated DATA TYPE and DESCRIPTION.
2 For the TEXT fields you will need to decide on appropriate FIELD SIZES. For the
NUMBER and CURRENCY fields you will need to decide on appropriate FORMATS
and DECIMAL PLACES.
3 Enter the following data:
S. Jones Manager 40 $25.00 $1000.00
W. Anderson Secretary 35 $18.00 $630.00
W. Grace Receptionist 35 $13.50 $472.50
G. Seller Machinist (Snr) 38 $17.50 $665.00
J. Cope Machinist 38 $14.50 $551.00
R. Justin Machinist (App) 38 $7.50 $285.00
W. Drapper Weaver 38 $13.50 $513.00
W. Freeman Weaver 38 $13.50 $513.00
H. Allison Weaver 38 $13.50 $513.00
Printing
1 Adjust the column widths, check a preview of the table thoroughly, then print a
copy.
2 Check the printout and make any necessary adjustments.
3 Make two adjustments to the data. W. Anderson has resigned and has been
replaced with R. Nixon. Two employees have had to be laid off due to tough
economic times. Delete R. Justin and W. Freeman.
4 Reprint the table and hand in your two printouts for marking.
1-22 © Guided Computer Tutorials 2008