

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
7 exercises in MS access course to cover database concepts and forming a report
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!
On special offer
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
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
Using the same technique as used to build the Patients table, create the Treatments table
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
Using the same technique as used to create the lookup for the Patient field, create the lookup for the
Treatments field table
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
Using the same technique as used to import the Patients.xlsx workbook, import the data from
Treatments.xlsx into the Treatments table
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