Professional Documents
Culture Documents
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?
Tasks
Using the same technique as used to build the Patients table, create the Treatments table
Tasks
Using the same technique as used to create the lookup for the Patient field, create the lookup for the
Treatments field table
Tasks
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
Exercise 5 – Query the database
Tasks
Find out how many men are in the Patients table who are less than 35 years old
Find out how many treatments have been given to people from the EN56 post code
Calculate the total cost of treating all patients
Calculate the cost of treating patients by post code
Count the number of treatments for each sex
How many surnames start with the letters ‘We’ (any number of letters can follow)
How many surnames contain the letters ‘an’ at any part of the name
How many first names end with ‘er’ (any number of letters can precede)
Tasks
Create a single item form based on the Patients table, save it as “Patients form”
Create a multiple items form based on the Patients table, save it as “Patient List”
Modify the Patient List form by removing the Address Line 1 and Post Code fields
Resize the fields by reducing the height so that you can see a more people on the screen.
Save your changes
Tasks
Build a report based on the Patients table that includes the ID, Surname, First Name, Date of Birth,
and Sex fields
Group the report by sex
Sort by date of birth in descending order
Use the Block layout and portrait orientation
Save the report as “Grouped patient list”
Switch to layout or design view and resize any fields whose boxes are too narrow