8.5.2-3 Worksheet A

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

8.5.

2 Worksheet A
Theory
1a Explain the term “Validation”
an automatic computer check to
ensure that the data entered
is sensible and reasonable
1b Explain the term “Validation
text”
a message that is
displayed when data
entered in that field
does not conform to
the validation rule or it
is violated.
2 Identify three features of a
‘useful’ error message.

____________________
____________________
__________________
____________________
____________________
__________________
3 Identify
appropriate
validation checks
for each field in the
database design
below. The
database will keep
track of patient
appointments and
treatments at a
dental surgery. You
may use the same
check for several
fields.

Presence check Length check Format check


Range check Type check Lookup

Fill in the last row


of the table above
with appropriate
validation checks.

PatientID Firstname Surname Date Time Treatment Cost


Number Date Must be Can be only: Must be
Informat assigned format between $
ion automaticall • Check-up
9 a.m. and Costs
(no need y by
6 p.m. • X-ray
to add software are
anything • Hygienist between
here) $20 and
• Filling $200
Validatio Autonumber EXAMPLE
n checks data type so
(add info no
:
in the validation
columns
with a
required ___ - Presence ___ ___ ___ ___
check
line). An
example
is done - Format
for you. check

Practice
Open this link and follow the
steps. You will need to
download a MS Access file
and implement some
validation checks. Download
database. Please, add your
screenshots below:

ADD a SCREENSHOT of PRACTICE


2: Error message when not
entering initials (student and
tutor):
ADD a SCREENSHOT of PRACTICE
3: Error message when one of
the students’ surnames is
more than 25 characters:

ADD a SCREENSHOT of PRACTICE


4 A: Error message when one
student’s year group is not
between 7 and 11:

ADD a SCREENSHOT of PRACTICE


4 B: Error message when a
student’s SessionDate occurs
in the past:
ADD a SCREENSHOT of PRACTICE
5 Method 1: Error message
when user enters something
other than “Online” OR
“InPerson”:

PRACTICE 5 Method 2:
How do input masks work? Give
an example of an input mask
that you used during the
practice and what effect it had
on the data you entered.

You might also like