Professional Documents
Culture Documents
Sandra Coates Skating Club: Creating Tables, Queries, Forms, and Reports in A Database
Sandra Coates Skating Club: Creating Tables, Queries, Forms, and Reports in A Database
GETTING STARTED
Open the file NP_AC16_CS1-4a_FirstLastName_1.accdb, available for
download from the SAM website.
o If you do not see the .accdb file extension in the Save As dialog box, do
not type it. The program will add the file extension for you automatically.
To complete this Project, you will also need to download and save the following
support files from the SAM website:
o Support_NP_AC16_CS1-4a_Athletes.xlsx
o Support_NP_AC16_CS1-4a_SCSC.accdb
o Support_NP_AC16_CS1-4a_Locations.txt
o Support_NP_AC16_CS1-4a_Levels.txt
Open the _GradingInfoTable table and ensure that your first and last name is
displayed as the first record in the table. If the table does not contain your
name, delete the file and download a new copy from the SAM website.
PROJECT STEPS
1. Sandra Coates Skating Club (SCSC) is committed to the development of skaters
of all ages. It manages athlete and coach data for skating athletes located at
various skating clubs throughout Pennsylvania. Sandra Coates is the founder and
general chairperson of SCSC, and she has just received approval from the board
of directors to replace SCSC’s manual system of managing data about athletes,
coaches, and locations with a database. She has asked you to help her create
objects in the database that she and other staff members can use to manage
data about athletes, coaches, and their locations.
Open the tblCoach table in Design View, and then make the following changes:
2. Switch to Datasheet View, enter the records shown in Table 1 below into the
tblCoach table, and then close the table.
3. Create a new table in Datasheet View. Save the table as tblAthlete, and then
make the following changes in Datasheet View:
a. Change the data type of the ID field to Short Text, and then change the
field name to AthleteID.
b. Add the following fields to the table in the order listed, and choose the
Short Text data type for each field: LocationID, FirstName,
LastName, Address, City, State, Zip, LevelID, and Gender.
c. Save the table.
4. Switch to Design View for the tblAthlete table, and then set the field properties
shown in Table 2 below.
5. Add a new field to the tblAthlete table, immediately after the Zip field. Use the
field name BirthDate, the Date/Time data type, the Short Date format, and
the caption Birth Date.
6. Move the LevelID field so that it is located immediately after the AthleteID field.
Save and close the table.
New Perspectives Access 2016 | Modules 1–4: SAM Capstone Project 1a
7. Much of the data that Sandra needs in the database is currently stored in other
formats and locations, so you need to import it into the database. Use the Import
Spreadsheet Wizard to add data to the tblAthlete table from an Excel spreadsheet
as follows:
9. Open the tblLocation table in Design View, and then update the field properties
shown in Table 3 below. Set the LocationID field as the Primary Key, then save
and close the tblLocation table.
10. Sandra exported her existing location data to a text file, and she asks you to add
this data to the tblLocation table. Import the data as instructed below:
12. Sandra exported her levels data to a text file, and she asks you to add this data
to the tblLevel table. Import the data as instructed below:
d.
14. Sandra needs to be able to find information on athletes that qualify for the
children’s classes, so you decide to create a query to allow her to quickly locate
athletes born during or after 2011. Use the Simple Query Wizard to create a
query based on the tblAthlete table. Include all fields in the query, and
use qryAthletesBorn2011AndYounger as the title. Make the following
changes to the query:
a. Add criteria to the BirthDate field to select records for athletes who were
born on or after 1/1/2011.
b. Sort the records in ascending order by LastName.
c. Hide the State field so that it does not appear in the query results. (Hint:
Make sure to hide this field in Design View, not in Datasheet View.)
d. Save and run the query, and then close it.
15. Create a new query in Design View that is based on the tblLevel and tblAthlete
tables. Add the LevelName field from the tblLevel table to the query design. Add
the FirstName, LastName, BirthDate, and Gender fields, in that order, from the
tblAthlete table to the query design. Save the query with the name
qryLevelsAndAthletes, run the query, and then complete the following tasks in
Datasheet View:
a. Sort the records by BirthDate, so the oldest athletes are listed first.
b. Use Filter By Selection to select only those athletes who skate for the
Collegiate level (Hint: Use the Equals “Collegiate” option.) Save and
close the query.
16. Create a new query in Design View that is based on the tblCoach and tblLevel
tables. Add the LevelName field from the tblLevel table to the query design. Add
New Perspectives Access 2016 | Modules 1–4: SAM Capstone Project 1a
17. In the Navigation Pane, copy the qryCoachBGCExpirations query, rename the
copied query qryCoach2019CertificationExpirations, and then add criteria to
only select records with a BGCExp date that occurs on or before 12/31/2019
and that contains a CertificationExp date that occurs on or before
12/31/2019. (Hint: This query should only return records that meet both of the
query conditions. The criteria for the BGCExp date should already be present in
the copied query.) Save and run the query, and then close it.
19. Create a new query in Design View that is based on the tblAthlete and tblLevel
tables. Add the LevelName field from the tblLevel table to the query design. Add
the FirstName and LastName fields from the tblAthlete table. Add the MonthlyFee
field from the tblLevel table. Save the query with the name
qryAnnualDuesByAthlete, run the query, and then complete the following
tasks:
a. In Layout view, change the form title to Levels, and then change the font
color of the form title to Dark Blue (4th column, 1st row of the Standard
Colors palette).
b. Switch to Form view, and use the frmLevels form to enter a new record in
the tblLevel table with the Level ID TODD, the Level Name Toddler, a
Monthly Fee of $95, and a Registration Fee of $50. Save and close the
form.
21. Use the Form Wizard to create a form containing a main form and a subform by
following the instructions below:
New Perspectives Access 2016 | Modules 1–4: SAM Capstone Project 1a
a. Select all fields from the tblLevel table for the main form.
b. Select the AthleteID, FirstName, and LastName fields from the tblAthlete
table.
c. Choose the option to view the data by tblLevel.
d. Select the Datasheet layout for the subform.
e. Specify the titles frmLevelsWithAthletes for the main form and
frmAthleteSubform for the subform.
f. Switch the form to Layout view and change the title in the main form to
Levels with Athletes, and then change the font color of the title to Dark
Blue (4th column, 1st row of the Standard Colors palette).
g. Resize the Athlete ID, First Name, and Last Name columns in the subform
to best fit the data they contain, or a width of at least 0.5” for each
column. Resize the width of the subform to approximately 3.5” as shown
in Figure 2 on the following page.
h. Use the navigation buttons to view each record in the main form, checking
to make sure that all data is displayed in the columns in the datasheet’s
subform. (Hint: The order of records in your subform may be different
than shown in Figure 2.) If necessary, resize the datasheet columns and
the subform to display the data so it is fully visible. When you are
finished, save and close the form.
i.
New Perspectives Access 2016 | Modules 1–4: SAM Capstone Project 1a
22. You decide that a report showing a list of all the athletes would be useful. Use the
Report Wizard to create a report based on the primary tblLevel table and the
related tblAthlete table, as instructed below:
24. You decide to modify the layout of the rptAthleteListing report to make it easier
to read. With the report still open in Layout View, complete the following steps:
a. Resize the Level Name, Monthly Fee, and Registration Fee field labels by
using the mouse to drag their right edges, decreasing their widths so the
boxes are as wide as necessary to display their contents (approximately
1.25”).
b. Resize the LevelName, MonthlyFee and RegistrationFee field value controls
by using the mouse to drag their right edges, decreasing their widths so
the boxes are as wide as their contents (approximately 1.2”).
c. Right-align the contents of the LevelName, MonthlyFee, and
RegistrationFee field value controls.
25. With the rptAthleteListing report still open in Layout View, complete the following
steps:
a. Resize the LocationID field label and field value controls by dragging their
left edges with the mouse to make all the contents visible (they should be
approximately 0.8” wide).
b. Resize the Last Name field label and field value controls to approximately
1.5” wide by dragging their right edge with the mouse.
c. Move the Birth Date and Gender field labels and field value controls to the
left to decrease the amount of space between the columns. The left edge
of the Birth Date label and controls should be located at approximately
4.5”, and the left edge of the Gender label and controls should be located
at approximately 5.6”. (Hint: The location of a control’s left edge can be
viewed in the Property Sheet.)
d. Resize the control that contains the page number to approximately 1”
wide. Use an arrow key to move the page number control so its right edge
aligns with the right edge of the Gender control in the report.
Switch to Report View, and scroll through the report to confirm that all
values are visible. Save the report.
New Perspectives Access 2016 | Modules 1–4: SAM Capstone Project 1a
26. Switch the rptAthleteListing report to Layout view, and use conditional formatting
to format birth dates that are greater than or equal to 1/1/2008 in a bold,
Green font color (6th column, 7th row of the Standard Colors palette). Display the
report in Print Preview and confirm that it matches Figure 3 on the next page,
and then save and close the report. (Hint: The records may appear in a different
order in your report.)
Save and close any open objects in your database. Compact and repair your database,
close it, and then exit Access. Follow the directions on the SAM website to submit
your completed project.