2. Create a table in design view and create the following fields making sure you get the data
type and field length correct.
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)
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).
10. Once you have finished, you can close down the form. This will take you back to the main
database window.
PART C
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
C – FORMS
6. You now need to annotate your printout. You need to write next to each command button
exactly what it does.
D – YOUR TABLE
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
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.