You are on page 1of 13

PART A

1. Create a blank database and call it “Stereos”

2. Create a table in design view and create the following fields making sure you get the data
type and field length correct.

Field Name Data Type Length


Stereo ID Autonumber -
Stereo Make Text 20
Stereo Model Text 15
Surround Sound Yes/No -
Price Currency -
TV Link Yes/No -
Minidisc Yes/No
Colour Text 15
Number of Speakers Number -

3. Now make Stereo ID the key field.

4. Now make “Stereo Make” a lookup field using the lookup wizard from the Data type menu
and type in the following makes.

5. Make the “Colour field” a lookup field as well with the lookup
wizard. Use the following information.

6. It is always good to put in a “Validation rule” for some fields. This makes sure that the data
you enter is going to be correct. (see the screenshot below to make sure)

a. Click on the “Number of Speakers” field.


b. At the bottom of the screen enter the following into the “Validation rule” box: >=2
AND <=6
c. This will ensure that you don’t enter a
number less than 2 or more than 6.
d. Now in the box “Validation Text” type:
“Enter a number more than 2 and less
than 6”.
e. If some one tries to enter a wrong
number in then this message will appear
to tell them.
f. Finally in “Default value” enter the
number 2.

7. You can save the table now as “Stereos” and close it down.

PART B

8. Now in the main database menu, create a form to enter data into your table using the form
wizard.

9. Now enter in the following data about 20 different stereos. (Yes or No is represented by a tick
box).

Stereo Stereo Stereo Surround TV Number of


Price Minidisc Colour
ID Make Model Sound Link Speakers
1 Technics T21 Yes £280.00 No No Black 2
2 Phillips P34 No £250.00 No No Silver 2
3 Sony S12 No £290.00 Yes No Red 2
4 Sony S14 Yes £250.00 No No Silver 4
5 Goodmans G67 No £178.00 No No Black 2
6 Phillips P87 Yes £268.00 No No Black 2
7 Panasonic PA21 Yes £301.00 Yes No Red 2
8 Panasonic PA34 Yes £310.00 Yes No Black 2
9 Panasonic PA67 No £435.00 Yes No Silver 4
10 Panasonic PA98 Yes £567.00 Yes No Silver 6
Stereo Stereo Stereo Surround TV Number of
Price Minidisc Colour
ID Make Model Sound Link Speakers
11 Sony S98 No £456.00 No No Black 2
12 Phillips P76 No £230.00 Yes Yes Silver 2
13 Goodmans G56 Yes £178.00 Yes Yes Red 4
14 Panasonic PA134 No £433.00 Yes Yes White 4
15 Goodmans G457 No £230.00 Yes Yes Silver 2
16 Phillips P189 Yes £400.00 Yes Yes Silver 2
17 Sony S747 Yes £450.00 Yes Yes Silver 2
18 Panasonic PA234 No £679.00 Yes Yes Silver 6
19 Sony S23 Yes £675.00 No Yes Silver 6
20 Panasonic PA456 Yes £500.00 Yes Yes Silver 4

10. Once you have finished, you can close down the form. This will take you back to the main
database window.

PART C

11. Now you need to make a report showing your table in


alphabetical order by make of Stereo, so make a report
using the wizard to do this.

This screen is used to put the stereos in


order

12. When you print out your report, make sure your name is at the bottom in a label and the title
says “report sorted into alphabetical order by Stereo Make”
PART D

13. Now search for all Stereos made by Panasonic. You will
have to create a new query in design view to do this.

Don’t forget to press


“Add”

Type in the criteria


and add all the
other fields as well.

You can then see


the results

Then you can save it

14. Save the query as “Stereos made by Panasonic”.

15. Now make a report to


show the contents of the
query.

Remember to select
the query from the list.
16. Now create another query to show all stereos with surround sound and create a report of it.
Remember to give the query a proper title when you save it
PART E

1. It’s now time to start adding some advanced features to the database, starting with the Form.

2. Load up your from by double clicking on it.

3. You need to change to design view by clicking the


design button.

4. You are going to add a few command buttons to the form, so first you need to make it a bit
bigger by dragging it sideways.

Drag sideways here

5. Now click on the “Command Button” Icon and drag out a button onto
your form.

6. The Command button Wizard should automatically load up. You are going to create a
button that will advance to the next record, so select “Record Navigation” in the left box
and “Goto Next Record” in the right hand box. Then click next.
7. This next screen will allow you to choose
what your button will look like. Select one of
the buttons and click next.

8. Call the button nextrecord and click finish.

9. Change back to “Form view” to see you the button works.

10. Now using the same method, add buttons to Goto the previous record, Add a record and
delete a record. Add any other buttons you want to this.

PART F

11. So far you have only done simple searches but you can also use queries to perform complex
searches.

12. Create a new query in design view and add your Stereos table.

13. You are going to search for all Stereos with Surround sound and a TV Link. This is called
an AND search. Set up the criteria as shown below.

Remember to
add the other
fields from
your table.

14. You can view the results by pressing the datasheet view.

15. Now save your query as “Surround sound and TV link”.

16. Now you need to make a report showing the


results of this query. Remember to add your name
and make sure the title is correct.
17. Print out your report

18. Now perform the following searches on your database, making reports for each one:

a. Search for Stereos with surround sound AND are less then £300
b. Search for Stereos that are Panasonic OR Technics
c. Search for stereos that are less than £500 and have more than 2 speakers.

PART G

19. Another huge advantage of having a database in electronic form is the ability to sort data into
order. This can be done using reports.

20. Create a report showing the contents of your table and sort it into alphabetical order by make
as the primary sort and model as the secondary. This will put them in order of make first and
the models will then be put alphabetically within those groups.

21. Make sure you call your report “Stereos sorted by make and model”
22. Now create another report of the table but this time we will group the contents by make and
then have them sorted by cost.
PART H

23. If we assume that this is the database for Dixons, it might be a good idea to have a hyper link
to Dixons put on the form.

24. Open up your form and put it into Design View.

25. Click on the insert menu and select “Hyperlink”

26. Now type in the following address:


www.dixons.co.uk

27. If you run the form, this should now take you to the Dixons site
PART I

1. While it is useful to have all the information stored in tables, it can be quite hard to read. So
it is a good idea to make a graph showing some of the data. This is particularly difficult to do
in Access so we are going to “Export” information across to Excel to do this.

2. Open you query “Stereos made by Panasonic”.

3. Click on the file menu and click “Export”

4. From the “Save as type” box select “Microsoft Excel 97-2000” and call the file name
“Stereos made by Panasonic exported”. Then click on save all.

5. Now open Excel 2000 and click on open. The file you just exported should be there. Open
this file – It should look a bit like the one below.

6. You can change the format of the spreadsheet if you want to make it more readable.

7. This table contains all the models made by Panasonic. You are going to create a graph to
show “Model” against “Price”.

8. First highlight the “Model” column. Then hold down “ctrl” so that the price column is
selected as below. Then follow the instructions with the pictures.

Select the correct information, press the graph


button and select one of the column charts
Put in these labels and select the graph as
a new sheet.

Price of Panasonics

£800.00

£700.00

£600.00

£500.00
Price

£400.00 Pr ice

£300.00

£200.00

£100.00

£0.00
PA21 PA34 PA67 PA98 PA134 PA234 PA456
Model
Putting the project together

You now have to prove that you have done all this work, by printing out the different elements.

A – QUERIES

You should already have reports of the searches you have done on your database, but you also need
to add “screenshots” of your query design.

1. Click on the query tab in the main database


window and double click on your “Stereos made
by Panasonic” query.

2. Make sure you have the query open in “design view” by clicking the “Design view
button”.

3. Press the “Print screen” key on the keyboard (next to F12). This will not appear to have
done anything, but it has taken a picture of what is on the screen.

4. Now open Word 2000

5. From the edit menu, select paste and your screen shot should appear.

6. You need to add a title to the screenshot “Query showing all stereos made by Panasonic”.

7. At the bottom of the page, you also need to put a reason for the search: “So a customer
could see all the stereos made by Panasonic that are available”.

8. If your name is on the page in a footer, you can save your work and print it out.

9. You now need to do this for each of your six queries. Make sure they all have the correct title
and have a reason to go with them.

B – REPORTS

Your reports should already be printed out, they should include.

1. Reports of all six of your searches.


2. Your original report showing your table in alphabetical order by make.
3. The two sorts you did in part H.

Make sure these all have your name on them.

C – FORMS

You need to show that you have designed your form.

1. Load your form onto the screen


2. Take a screenshot of the form

3. Paste this into Word

4. Add the Title “Form for updating stereos table”

5. Add your name and print it out

6. You now need to annotate your printout. You need to write next to each command button
exactly what it does.

D – YOUR TABLE

1. Load up your table in design view

2. In the description column write down a description for each field (If it is a lookup filed like
colour or make, if it is the key field, if it has any validation etc)

3. Once this is done, you need to take a screenshot of the table and paste it into Word. Add a
title and your name and print it out.

E – YOUR GRAPH

1. Load up your graph in Excel and Print it out.

2. You need to write by hand on the bottom, the reason for the graph and that it has been
exported from Access into Excel.

You might also like