Unit 2 Step by Step Guide
Unit 2 Step by Step Guide
5. When you open access, there will already be one table created for you. Go
to Design View of the table and it will ask you to name the table. Always
name your tables with tbl at the beginning.
1
Unit 2: Creating Systems to Manage Information
6. Begin to fill in your field names of your tables that you sorted at the
beginning of the exam (step 2).
7. Choose the correct data type for each field and don’t forget when you
have one field in 2 or more tables, they must have the same data type. For
example, you have CustomerID set to number in one table, it must also be
set to number in another table.
Don’t set any of the fields to auto number because it will make it awkward
when adding in the information.
8. Repeat these steps until you have your 4 tables created.
9. Close all of your tables and make sure to save them.
10.Database Tools > Relationships
11.Add your tables from the sidebar by double clicking or dragging them over.
Make sure you do not have a table over twice (if it has the table name with
2
Unit 2: Creating Systems to Manage Information
a 1 at the end, you have added it twice. Right click and delete if you have
them in twice).
12.Match your field names now by dragging one over to the other. It doesn’t
matter which order as long as they both have the same field name and
data type. Click on the 3 tick boxes and click OK. You should be able to see
the line between the 2 tables and a 1 and infinity symbol between them.
3
Unit 2: Creating Systems to Manage Information
4
Unit 2: Creating Systems to Manage Information
4. The validation will be different each year, but they will always ask that
data must be present in a particular field. This is known as a presence
check. Click on the field that they want the validation check on for
example client surname and look at the bottom half of the screen. Look for
Validation Rule and enter Is Not Null and in the Validation Text enter Please
enter a surname. It doesn’t matter what you enter into the Validation Text
but as long as it is appropriate. This is the message that will appear if the
user leaves the surname field empty.
5
Unit 2: Creating Systems to Manage Information
6
Unit 2: Creating Systems to Manage Information
9. This is now where you will fill out your tables with the data. You will have
1.5 hours in total to complete Activity 1, Activity 2 and add the data to the
tables. Just be aware of your time.
Activity 3: Queries and Report (40 minutes) (12 marks)
1. Read what the paper is wanting for you to show. If there is a part a and b
this will be 2 separate queries.
2. Go to Create > Query Wizard > simple query.
3. Bring over the field names. This will depend on what they are asking you
in the exam. Click on the dropdown list with the tables and click on the
7
Unit 2: Creating Systems to Manage Information
arrows to bring the field names across. If you bring a field over by
mistake, click on the opposite arrow to bring it back over.
4. Name the query qry3a and click finish. You will see the results then of the
query.
5. If the paper has asked for a particular sorting/filtering of the query, you
need to go into design view of the query. Go back to Home > View >
Design View
In the criteria of the query is where you will add your word to filter the
query down to only show a particular set of results. For example, if you
were asked to only show customers who are from Lisnaskea, you would
type Lisnaskea into the criteria of the town field.
8
Unit 2: Creating Systems to Manage Information
7. Screenshot your query in both the design view (like above) and also with
the results that you got when you clicked on ‘run’.
8. The report is usually based on creating another query, but the exam won’t
specifically say this. A way to check if you need a query is to look at the
screenshots/evidence they are looking for.
Choose your query that you made previously from the dropdown and bring
over all of the fields.
9
Unit 2: Creating Systems to Manage Information
10.If the paper asks for grouping levels, double click on the relevant field
name. If it does not continue clicking on next.
11.Give the report an appropriate name with rpt at the beginning.
12.Close the print preview of the report and you will be in design view of the
report. Go to layout view instead (same way you would go to design view).
Space out the title or give the report an appropriate title. Then make sure
the field names also have a space/can easily be seen. Double click on the
field name and add the space. You are marked on how professional the
report looks, and this adds to it.
13.Screenprint the report into the word document and save it appropriately
with the correct name and in a PDF.
10
Unit 2: Creating Systems to Manage Information
2. The paper will have the number of tests. This is usually based on the
validation that you completed in activity 2.
3. The test number will be the number on the paper. The example below has
6 tests, so the test number will be from 1 to 6.
4. Type of test –
5. Data that has been entered into the Test Data is the exact data you will
enter in the database to be able to show the examiner that you validation
text appears.
6. Expected results is what you want to happen when you have entered
incorrect data eg an error message will appear to alert the user that they
have not entered a surname.
11
Unit 2: Creating Systems to Manage Information
7. Then you must screenshot the error message in the database. Screenshot
the full table and error message to show as much as you can for the
examiner. An example is below.
12
Unit 2: Creating Systems to Manage Information
3. Discuss how you sorted the fields into the corresponding tables and then
how you make the one-to-many relationships between the tables.
4. You will need to talk about the validation, but this will depend on the
validation you have been asked to complete.
5. Do not talk about the queries or the reports you made, and you do not
need to include screenshots as they will be ignored.
6. Tell the examiner why the validation is helpful and what was the purpose
of adding it.
13