Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Microsoft Access Exercises, Exercises of Microsoft Access Skills

7 exercises in MS access course to cover database concepts and forming a report

Typology: Exercises

2021/2022
On special offer
30 Points
Discount

Limited-time offer


Uploaded on 02/11/2022

anwesha
anwesha 🇺🇸

4.9

(12)

238 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Exercise 1 scope a small database
A local medical practice have asked you to help design a simple database to track the costs of treating
patients. Their paper based system means that it takes a long time to work out how much they are spending.
What do we need to be able to do?
Record exact costs of treatments against each person
Record name, description, and cost of a range of treatment types
Track costs by treatment type
Track costs by age
Track costs by sex
Track costs by post code
Tasks
Decide what the main table names should be
Note down the fields that belong to each table
Choose an appropriate data type for each field
Exercise 2 Create a table
Using the same technique as used to build the Patients table, create the Treatments table
Tasks
Create a new table in Design view (CREATE > Table Design)
Enter the fields as in the table below
Nominate the ID field as primary key
Add a validation rule to the currency field so that values must be greater than or equal to zero
Add some validation text to the effect that “Treatments costs cannot be below zero
Save the table and call it Treatments
Field Name
Data Type
ID
AutoNumber
Treatment
Short Text
Description
Long Text
Cost
Currency
pf3
Discount

On special offer

Partial preview of the text

Download Microsoft Access Exercises and more Exercises Microsoft Access Skills in PDF only on Docsity!

Exercise 1 – scope a small database

A local medical practice have asked you to help design a simple database to track the costs of treating patients. Their paper based system means that it takes a long time to work out how much they are spending.

What do we need to be able to do?

 Record exact costs of treatments against each person

 Record name, description, and cost of a range of treatment types

 Track costs by treatment type

 Track costs by age

 Track costs by sex

 Track costs by post code

Tasks

Decide what the main table names should be Note down the fields that belong to each table Choose an appropriate data type for each field

Exercise 2 – Create a table

Using the same technique as used to build the Patients table, create the Treatments table

Tasks

Create a new table in Design view (CREATE > Table Design) Enter the fields as in the table below Nominate the ID field as primary key Add a validation rule to the currency field so that values must be greater than or equal to zero Add some validation text to the effect that “Treatments costs cannot be below zero Save the table and call it Treatments

Field Name Data Type

ID AutoNumber

Treatment Short Text Description Long Text Cost Currency

Exercise 3 – Create a relational table

Using the same technique as used to create the lookup for the Patient field, create the lookup for the

Treatments field table

Tasks

Change the data type of the Treatments field to Lookup Wizard Step through the wizard making sure you choose the Treatments table as the data source Add the ID, Treatment Name, and Cost fields Sort the lookup by Treatment Name, then Cost fields Enable Data Integrity and Restrict Deletes Save the changes when prompted

Exercise 4 – Import data

Using the same technique as used to import the Patients.xlsx workbook, import the data from

Treatments.xlsx into the Treatments table

Tasks

Launch the import from Excel wizard (EXTERNAL DATA > Import & Link > Excel) Browse for and select the Treatments.xlsx workbook Choose to append a copy of the records to the Treatments table Step through each prompt on the wizard as there won’t be any changes needed Finish and close the wizard Open the Treatments table to confirm that the records imported correctly. Repeat the process for the Patient Treatments.xlsx workbook to import the data into the Patient Treatments table