ecdl_exercises_module_5
ecdl_exercises_module_5
Courseware from
Cheltenham Computer Training
Contact Information
NOTE: All reasonable precautions have been taken in the preparation of this document, including
both technical and non-technical proofing. Cheltenham Computer Training and all staff assume
no responsibility for any errors or omissions. No warranties are made, expressed or implied with
regard to these notes. Cheltenham Computer Training shall not be responsible for any direct,
incidental or consequential damages arising from the use of any material contained in this
document.
If you find any errors in these training modules, please inform Cheltenham Computer Training.
Whilst every effort is made to eradicate typing or technical mistakes, we apologize for any errors
you may detect. All courses are updated on a monthly basis, so your feedback is both valued by
us and will help us to maintain the highest possible standards.
Cheltenham Computer Training 2000 No part of this document may be copied without written
permission from Cheltenham Computer Training unless produced under the terms of a site
license agreement with Cheltenham Computer Training.
PLEASE READ
This courseware should be used by candidates holding an official ICDL/ECDL Skills Card or Log
Book, and should lead to the taking of official ICDL/ECDL tests. These are available from your
national ICDL/ECDL office. See www.ecdl.com for details.
ECDL Approved Courseware
""European Computer Driving Licence" and ECDL and Stars device are registered trade marks of
the European Computer Driving Licence Foundation Limited in Ireland and other countries.
Cheltenham Computer Training is an independent entity from the European Computer Driving
Licence Foundation Limited, and not affiliated with the European Computer Driving Licence
Foundation Limited in any manner. This product may be used in assisting students to prepare for
the European Computer Driving Licence Examination. Neither the European Computer Driving
Licence Foundation Limited nor Cheltenham Computer Training warrants that the use of this
product will ensure passing the relevant Examination. Use of the ECDL-F approved Courseware
Logo on this product signifies that it has been independently reviewed and approved in complying
with the following standards:
Acceptable coverage of all courseware content related to ECDL Syllabus Version 3.0. This
courseware material has not been reviewed for technical accuracy and does not guarantee that
the end user will pass the associated ECDL Examinations. Any and all assessment tests and/or
performance based exercises contained in this product relate solely to this product and do not
constitute, or imply, certification by the European Driving Licence Foundation in respect of any
ECDL Examinations. For details on sitting ECDL Examinations in your country please contact the
local ECDL Licensee or visit the European Computer Driving Licence Foundation Limited web
site at http://www.ecdl.com.
References to the European Computer Driving Licence (ECDL) include the International
Computer Driving Licence (ICDL). ECDL Foundation Syllabus Version 3.0 is published as the
official syllabus for use within the European Computer Driving Licence (ECDL) and International
Computer Driving Licence (ICDL) certification programme"
Before making ANY changes to this product you must first contact the ECDL Foundation for
approval of the changes that you wish to make. Please contact Aisling Mulqueen, at the ECDL
Foundation using this email address [email protected]. In the event of this email not
working, please contact the ECDL via their web site. Or write to Aisling Mulqueen, ECDL
Foundation. Block B #6 Leopardstown Office Park, Sandyford Industrial Estate, Dublin 18.
Cheltenham Computer Training accept no liability whatsoever arising from any changes
that you make to this courseware, with, or without, ECDL Foundation approval.
CONTENTS
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Locate the Microsoft Access icon from within the Windows Start Menu.
Click the Microsoft Access icon and Access will open.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
From the opening Microsoft Access dialog box, select the Open an existing file option, and
then click on the OK button. The Open dialog box will be displayed.
In this example, we are going to open the Northwind sample database that is supplied with
Access.
Click on down arrow in the Look in box to display a drop down list of drives and folders.
Select the C: from the list. The contents of the C drive will be listed in the dialog box.
Double click on the Program Files folder to open it.
Double click on the Microsoft Office folder.
Double click on the Office folder.
Double click on the Samples folder. The contents of the Samples folder will be displayed.
Click on the Northwind file.
Click on the Open button to open the database.
You may see an opening screen, in which case click on the OK button.
Open the Employees table by double clicking on the Employees entry in the table list.
Click within the field you wish to edit. In this case select the name Dodsworth (in record 9),
and change the name to Dodswell.
Press the Enter key. Your changes are saved when you press the Enter key.
Close the table window, by clicking on the Close icon at the top-right of the Employees
window.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Remember that to save an Access Database file to a floppy disk, you should use the Microsoft
Windows Explorer, (as detailed in your training manual). This option may not help you however,
as database files are often so large they will not fit onto a floppy disk, (which can only hold around
1.5 Mbytes)!
OR click in the Control menu box in the Database window and choose Close
OR double click in the Control box
OR press Ctrl+F4.
Restart Access once you have closed it and reopen the Northwind database.
Click on the Microsoft Access Help icon, located on the toolbar to activate the Office
Assistant.
Type a question into the box at the bottom of the Office Assistant and press the Enter key. In
this case enter the words keyboard shortcuts. You should see a screen similar to that
illustrated.
Clicking on the first option displayed i.e. Keyboard shortcuts, will display the following (or
similar)
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Double click on any of the tables listed (in this case the Employees table) to open the Table
window and display the table.
By default a table is displayed in Datasheet View allowing you to view and edit data.
Click on the Design View icon, located on the toolbar.
The table is now displayed in Design View. Design View allows you to add/remove fields
to/from the table and set properties for individual fields.
Switch back to Datasheet View by clicking on the Datasheet View icon located on the
toolbar.
To display a toolbar, select the Toolbars command from the View menu to display the
Toolbars drop down menu. A list of toolbars is displayed which includes: Standard,
Formatting, Borders, Database, and Drawing etc.
Choose the Toolbar you want to display by clicking on it from the list. Experiment with
display the Web toolbar and then hiding the Web toolbar.
Before you proceed make sure that the Database toolbar is still displayed!
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
If open, close the Northwind database (but do not close the Access program).
If you click on the File drop down menu within the Access window and then click on the New
command, you will see the following dialog box.
Select the Database icon and click on the OK button. The File New Database window will be
displayed.
Enter My First Database as the file name.
Click on the Create button to close the File New Database window and open the Database
window as illustrated.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Make sure that the Tables icon (down the left hand side of the window) is selected, and then
double click on the Create table using wizard command. You will see the Table Wizard
dialog box displayed.
Click on the Next button, which will display the next page of the Table Wizard.
In the What do you want to name your table? text box, type My Contacts as the name for
your table.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Here you can choose how to proceed once the table has been created. Ensure that the
Enter data directly into the table option is selected.
Click on the Finish button to close the Table Wizard and create the table.
The Table is displayed.
Close the Table window by clicking the Close icon in the top right of the window.
In the New Table dialog box, select Design View and then click on the OK button.
Enter the name of the field into the empty cell immediately below the Field Name Header.
For instance you could add a field name called First Name. Press the Tab key to move to
the next cell.
The next cell is called Data Type. This allows you to control what type of data is to be entered
into the field. Click on the down arrow to display a list of available options.
If for instance you select Number, then only numeric data may be added. If you select Text,
then only text may be entered, and so on. Select Text in this case.
Press the Tab key to move to the next cell.
This cell is called Description, it is an optional property that allows you to explain the function
of the field to someone who will later be using the database table.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Pressing the Tab key will take you down to the next row allowing you to add further field
names, properties and descriptions, as required.
First Name
Second Name
Organization
Phone Number (define this as a number data type)
When you see the dialog box asking if you wish to save your changes click on the Yes
button.
In this case enter a table name of My Second Table and then click on the OK button.
You will then see the table stored as an item within the Tables tab of your database.
Close the database by clicking on the File drop down menu and selecting the Close
command.
To move to a field using the mouse, simply place the mouse pointer over the required field
and click.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
You can also move around the table using the keyboard. Experiment with using the keys
below to navigate the table.
At the bottom of the Table window there are 5 buttons that you can use to move around the
table. Experiment with using the buttons below to navigate the table.
to a new record
You can also move directly to a specific record number. Press F5 to highlight the record
number on the scroll bar and type the number of the record you want.
Press Enter.
Access will place the cursor in the first field of the new record.
Type the data into the cell (just make up data for two records (i.e. rows) or information.
Remember to press Tab to move from field to field. Also remember that when you have
entered data for a complete record, that pressing the Tab key will create another record for
you.
When you have finished experimenting, close the Northwind database.
To create an index
Select the field you wish to index on by clicking on its name in the Field Name column (in this
case select Phone Number.
In the bottom left of the Table window ensure that the General tab is selected.
Click within the text box to the right of the Indexed field property. A downward pointing arrow
will appear in the right of the text box.
Click on the arrow to display a list of index options.
Select Yes (Duplicates OK) and Access will create an index. Select Yes (No Duplicates)
and Access will create an index but will not allow 2 or more records to hold the same data in
the field (i.e. the contents of the field must be unique).
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Click the mouse button and the column will be come selected.
Click once, within the table to deselect the column.
To move a column(s)
Select a column and release the mouse button.
Click on the column selector and drag the column(s) to the new location. As you drag the
columns a solid bar between columns indicates the current position of the columns being
moved.
Release the mouse button to drop the columns(s) at the new location.
Before proceeding drag the column back to it’s original location.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
The field attributes are displayed in the bottom left hand corner of the Table window. As you
can see the Field Size is set to 50 character. Change this to 30 characters.
If you wish you may experiment with setting other attributes for this field. Remember that you
can use the built in help to guide you. Just press the F1 key while within one of the attribute
fields. As an example, you will see the following Help screen if you click within the Caption
attribute field and press the F1 key.
Close the Table window without saving your changes by clicking the Close icon in the top
right of the window.
Close the database.
Put the insertion point in the first field of the blank record at the bottom of the datasheet.
Type a value in each field and press TAB to move to the next field, (just make up data!)
When you reach the last field, pressing TAB puts your insertion point into the first field of the
new, last blank record.
REMEMBER: Access saves the completed record as soon as you move on to the next
record.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Select the record you want to delete (in this, select a record that you added to the database).
Press the Delete key.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
You can now use this form to enter information into the table or modify existing data.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
In the top part on the dialog box, select the Form Wizard.
In the bottom part on the dialog box, select the table or query where the objects data will come
from, for this exercise select the Employees table.
Click on the OK button to display the next page of the Form Wizard.
Click on the field that you wish to add to the form, and then click on the right printing arrow
button to add it to the Selected Fields section of the dialog box. For this exercise add the
following fields
EmployeeID
LastName
FirstName
Title
HomePhone (You may have to scroll down to view this field)
When you have added the required fields click on the Next button.
The next page of the dialog allows you to define the layout of the form.
Choose the Columnar option and then click on the Next button.
The next page of the Form Wizard allows you to choose a pre-defined style.
Select the Industrial style and click on the Next button to continue.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
This next page of the Form Wizard allows you to name the form and set final options for using
the form.
Entering data into a form is much like entering data into a table. Type your data into the form
field, once finished press the Tab key to move to the next field. Pressing Tab in the last field
will take you to the next record.
To create a new record, click on the New (Blank) record icon at the bottom of the Form
Window.
Close the Form window by clicking on the Close icon in the top right of the window.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Drag the corner of the section and form until it is the required size.
Select a new font from the Font drop down list on the Formatting toolbar.
Set the font size using the Font Size drop down list on the Formatting toolbar.
Use the Align Left, Center and Align Right icons to position the text within the control.
To set the text color, click on the down arrow to the right of the Font/Fore Color icon and
select a color from the palette.
A palette will be displayed, click on the color you want to use for the background.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
To resize a control
Select the control you want to resize.
Move the pointer over one of the sizing handles. It will change to a double-ended arrow
indicating the directions in which you can drag the handle.
Click the left-hand mouse button and while you keep it depressed, drag the sizing handle to
increase or decrease the size.
To delete a control
Select the control you want to delete.
Press the Delete key. NOTE: If you select the label and press Delete, just the label will be
deleted. However, if you select the text box and press Delete, both text box and label will be
deleted.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Click on the File drop down menu and select the Northwind database from the list of recently
used databases at the bottom of the menu.
Click on the Tables icon in the Database window to display a list of tables in the Northwind
database.
Open the Customers table.
To begin a search
Click in the field on which you want to search, for this example click within the Country field.
NOTE: You may have to scroll to the right to see this field.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Type the value you want to find into the Find What box. For this exercise type in Mexico.
Click on the Find Next button or press Enter. Access moves to the first record in which the
value exists and highlights the field.
Click on Find Next to find another occurrence of the same value. Repeat this step until all the
occurrences have been found. Access will display a dialog box once it has finished searching
the entire table, click on the OK button to close the dialog box.
Click on the Close icon in the top right of the Find and Replace dialog box to close the dialog
box.
Close the Table window.
Select the Simple Query Wizard option, and then click on the OK button to move to the next
Wizard page.
The dialog box should resemble that illustrated below.
Click on the down arrow in the Tables/Queries text box and select Table:Products.
To add a field, select the field and click on the right-pointing arrow.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
When you have finished adding fields, click on the Next button, and the dialog box below is
displayed.
Click on the Finish button to complete the query. The results are displayed as illustrated.
Close the Select Query window by click on the Close icon in the top right of the window.
Ensure that the Tables tab is selected and click on the Customers entry in the list so that
Customers is highlighted as illustrated above.
Click on the Add button. A list of fields in Customers table will now be displayed above the
query grid.
Click on the Close button within the Show Table window to close the Show Table window.
The Select Query window should now resemble the illustration below.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Add the fields you want to use in your query to the query grid by double clicking on the field
names in the Customers table list. Double click on CustomerID, ContactName,
ContactTitle, Phone and Country.
NOTE: You will have to scroll down to see some of these!
The Select Query window should now resemble the illustration below.
We now need to set the criteria. Click within the Criteria box for the ContactTitle field and
type Marketing Manager followed by the Enter key.
Click within the Criteria box for the Country field and type USA followed by the Enter key.
The Select Query window should now resemble the illustration below.
To save a query
Click on the File drop down menu and select the Save command
The Save As dialog box will be displayed. Type a name for the query into the Query Name
text box.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
In this example only fields containing the word “Owner" will be displayed, as illustrated.
Click on the Remove Filter icon to remove the filter and display the whole table once more.
Click on the drop down arrow and you may select one of the items displayed to filter this field
on. For this exercise, choose Marketing Assistant.
Click on the Apply Filter icon, and only records where Contact Title contains the item
Marketing Assistant will be displayed.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Close the Select Query window by clicking on the Close icon located in the top right of the
window.
You should now see the following displayed in the Filter window.
To apply the filter, click on the Apply Filter icon, located on the toolbar.
In this case, only 2 records in the Employees table meet the requirements of our filter.
Click on the Remove Filter icon to remove the filter and display the whole table once more.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
5.5 Reporting
Select the table or query where the objects data comes from. For this exercise select
Customers from the Northwind database.
Select AutoReport: Columnar.
Click on the OK button and the column formatted report will be generated and displayed on
the screen.
Close the report without saving your changes by clicking on the Close icon on the top right of
the window and clicking on the No button in the displayed dialog box.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Select the table or query where the objects data comes from. For this exercise select
Customers from the Northwind database.
Select AutoReport: Tabular.
Click on the OK button and the table formatted report will be generated and displayed on the
screen.
Close the report without saving your changes by clicking on the Close icon on the top right of
the window and clicking on the No button in the displayed dialog box.
Select the table or query on which you want the form based. For this exercise select the
Customers table.
Click on the Report Wizard.
Click on the OK button.
The next page of the Report Wizard is displayed.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
Click on the field that you require and click on the right pointing arrow to add the field to the
Selected Fields section of the dialog box. Use this procedure to add CustomerID,
CompanyName, ContactName and Phone.
Click on the Next button to continue to the next page of the Report Wizard.
This page of the Report Wizard allows you to sort your records by up to four fields, in either
ascending or descending order.
Click on the down arrow to the right of the box labeled 1 and select CompanyName from the
list.
Click on the down arrow to the right of the box labeled 2 and select Phone from the list.
The Report Wizard dialog box should now resemble the illustration below.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
The next page of the Report Wizard allows you to determine the layout of the report.
The next page of the Report Wizard is the final page, which allows you to give a name to the
report.
Enter the name My First Report into the top text box.
Click on the Finish button to generate and preview the report.
Close the report by clicking on the Close icon in the top right of the report window.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
If the Toolbox is not visible you can display it by clicking on the Toolbox icon, located on the
toolbar.
Click on the field you want to add to the report within the Field List. The field is now selected.
Drag the field onto the area of the report where you want it to appear.
As you move the mouse pointer from the Toolbox to the report, it will change to a small box
resembling the Text Box icon but with a cross outside the upper left-hand corner of the box.
Click the on the report where you want the text box to go.
To create a label
Click the Label icon in the Toolbox.
Click in the area of the report where you want your label to go.
Type the text you want in your label.
Click on the Insert drop down menu and select the Page Numbers command. The Page
Numbers dialog box will be displayed as illustrated.
e
v
i
F
e
l
u
d
o
M
[Databases/Filing Systems] EXERCISES
From the Position section of the Page Numbers dialog box, select the Bottom of Page
[Footer] option.
Click on the OK button to close the Page Numbers dialog box. The necessary code will be
inserted into the Page Footer section of the report.
Select Print Preview from the View drop down menu and if necessary scroll down to the
bottom of the page to see the footer you have created.
Select the field you wish to group the report by and click on the right arrow button. You can
use the up and down arrow buttons to adjust the priory of the field.