question archive Shelly Cashman Access 2016 | Modules 4–7: SAM Capstone Project 1a Carpenter Family Camp enhancing forms and reports GETTING STARTED Open the file SC_AC16_CS4-7a_FirstLastName_1
Subject:MS AccessPrice: Bought3
Shelly Cashman Access 2016 | Modules 4–7: SAM Capstone Project 1a
Carpenter Family Camp
enhancing forms and reports
Open the file SC_AC16_CS4-7a_FirstLastName_1.accdb, available for download from the SAM website.
Save the file as SC_AC16_CS4-7a_FirstLastName_2.accdb by changing the “1” to a “2”.
0. 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.
1. 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.
Carpenter Family Camp operates summer camps for youth as well as families on a lake in Maine situated near the coast. The camp offers activities for families as well as separate activities for adults and children. Optional adventures to nearby attractions are also available. Open the Counselor table in Design View. Using the Input Mask Wizard, add an input mask to the CellPhone field. Use the Phone Number input mask with the Input Mask format !(999) 000-0000 and the underscore (_) as the placeholder character. The input mask should store the values without symbols in the mask. Save and close the table.
Use the Form Wizard to create a new form based on the Activity table using the following options:
a. Select all of the fields in the Activity table. (Hint: The form should contain five fields.)
b. Use the Columnar layout.
c. Use the title Activity Information for the form.
View the Activity Information form in Form View, and then save and close it.
Open the Parent Camper Form in Design View and update the form as follows:
d. Add the HomePhone control and label in the approximate locations shown in Figure 1 on the following page.
e. Select the HomePhone and CellPhone controls and their associated labels, and then align them using the Top option.
Figure 1: Parent Camper Form in Design View
f. Select the LastName and HomePhone controls and align them using the Left option.
g. Select the LastName and HomePhone labels, and then align them using the Left option.
h. Change the tab order so that users tab to the HomePhone control directly after the LastName control.
Save but do not close the form.
With the Parent Camper Form still open in Design View, ensure that the Use Control Wizards button is selected. Use the Subform/Subreport Wizard to add a subform with the following options:
i. Use the Camper-Child Query for the subform.
j. Select the CamperID, ParentID, FirstName, LastName, Gender, and Age fields (in that order) from the Camper-Child Query to add to the subform.
k. Accept the default link (“Show Camper-Child Query for each record in Parent using ParentID”) to link the main form to the subform.
l. Save the subform as Children subform. (Hint: Do not include the period.)
m. If necessary, reposition the subform to match the approximate location shown in Figure 1.
Save the Parent Camper Form, but do not close it.
With the Parent Camper Form still open in Design View, add a title to the form. Change the title text to read Parent Camper Information Form. (Hint: Do not include the period.) Save and close the form.
Open the Counselor Entry Form in Design View and ensure that the Use Control Wizards button is selected. Add a combo box to the right side of the Form Header section as described below:
n. The combo box should find a record in the form.
o. The CounselorID, LastName, and FirstName fields (in that order) should be selected for the combo box.
p. The key column should be hidden.
q. Add the text Go to Counselor: as the combo box label.
r. Resize and reposition the combo box control and label to be in the approximate location shown in Figure 2 on the following page.
Save the Counselor Entry Form, but do not close it.
With the Counselor Entry Form still open in Design View, add a command button to the right side of the Form Footer section with these options:
s. The command button action should close the form (using the Close Form action).
t. The button should display the text Close and no picture.
u. The meaningful name for the command button should be Close Button. (Hint: Do not include the period.)
v. The command button should be positioned in the Form Footer section with the left edge at approximately the 5” mark on the horizontal ruler, as shown in Figure 2 on the next page.
Save the Counselor Entry Form, but do not close it.
With Counselor Entry Form still open in Design View, add a rectangle control to enclose the Specialty and CPR labels and controls as shown in Figure 2 on the next page. The upper-left corner of the rectange should be located at approxmiately the 0.5” mark on the horizontal ruler, and the lower-right corner of the rectangle should be located at approximately the 3.1” mark on the horizontal ruler. Save the Counselor Entry Form, but do not close it.
Figure 2: Counselor Entry Form in Design View
With the Counselor Entry Form still open in Design View, make the following formatting updates:
w. Use the Format Painter to copy the formatting from the Counselor ID label to the other six labels in the Detail section of the form.
x. In the Detail section of the form, change the fore color of the CounselorID, FirstName, LastName, CellPhone, HireDate, and Specialty controls to Dark Blue (last row, 9th column of the Standard Colors palette).
Save the Counselor Entry Form, compare the form to Figure 2, and then close the form.
Use the Report Wizard to create a multi-table report as described below:
y. Add the FirstName and LastName fields (in that order) from the Parent table to the report.
z. Add the SessionID, ReservationID, and LodgingFee fields (in that order) from the Reservation table to the report.
aa. The data should by viewed by Parent with no additional grouping levels.
ab. Sort the report in ascending order by the SessionID field.
ac. Use the Stepped layout and Landscape orientation for the report.
ad. Use Parent Reservation as the report title.
Compare your report to Figure 3 below, and then save and close the report.
Figure 3: Parent Reservation Report in Print Preview View
Use the Label Wizard to create mailing labels for the Parent table using the following options:
ae. Use the Avery 5160 label size.
af. Use Arial font, 12 pt. font size, Normal font weight, and Black font color (6th row, 1st column in the Basic Colors palette) with no special font styles for the labels. (Hint: These formatting options may be the default settings for your labels.)
ag. On the first line of the label, include the FirstName field, a space, and the LastName field.
ah. On the second line of the label, include the Address field.
ai. On the third line of the label, include the City field, a comma (,), a space, the State field, a space, and the PostalCode field. Your label should match the label in Figure 4 on the following page.
aj. Sort the labels first by the LastName field and then by the FirstName field.
ak. Name the report Parent Mailing Labels. (Hint: Do not include the period. If you received a message indicating all information may not be displayed, click OK.)
Preview the mailing labels and confirm that they match Figure 5 below. Save and close the Parent Mailing Labels report.
Figure 4: Parent Prototype Label
Figure 5: Parent Mailing Labels Report in Print Preview View
Open the Reservations by Session report in Layout View. Open the Group, Sort, and Total Pane, and then add an ascending sort order on the ReservationID field within the SessionID group. Save but do not close the report.
With the Reservations by Session report still open in Layout View, add subtotals and a grand total to the LodgingFee column using the SUM function. Save but do not close the report.
With the Reservations by Session report still open in Layout View, apply conditional formatting to the values in the Child Total Price column so that if the field value is greater than or equal to 600, the field’s font color is set to Green (1st row, 7th column in the Standard Colors palette) and the font weight is Bold. Compare the report to Figure 6 below, and then save and close the Reservations by Session report.
Figure 6: Reservations by Session Report in Layout View
Open the Counselor Contact Report in Design View, and then set the Record Source property to the Counselor Contact Query. Save and close the Counselor Contact Report.
Open the Children by Parents report in Design View, and then add a grouping field to the report as described below:
al. Open the Group, Sort, and Total Pane, and then add the LastName field as a grouping field.
am. Select the LastName header, and then change the Repeat Section property value to Yes.
an. With the LastName header still selected, modify the Force New Page property so that a new page should be created after each section (using the After Section option).
Save the Children by Parents report, but do not close it.
With the Children by Parents report still open in Design View, add a field to the LastName Header as described below:
ao. Add the LastName field to the LastName Header. (Hint: Use the Add Existing Fields button to open the field list.)
ap. Delete the label associated with the LastName control.
aq. Select the LastName control, and then modify it to display with a font size of 14 pt. and a font weight of Bold.
ar. Move the control so that the left edge of the LastName control is touching the left edge of the report as shown in Figure 7 below.
as. Resize the LastName control so that the right edge of the control is at the 1.5" mark on the horizontal ruler.
Save but do not close the Children by Parents report.
Figure 7: Children by Parents Report in Design View
With the Children by Parents report still open in Design View, add page numbers and dates to the report as described below:
at. Add the date to the report using the Short Date (e.g., 12/12/2017) format. Do not include the time in the report.
au. Add page numbers to the report, using the Page N of M format, at the bottom of the page, with the Right alignment option.
Save the report and compare it to Figure 7. Close the Children by Parents report.
Open the Session Charts form in Design View. In the tab control, make the following updates:
av. Use Adults as the name of the first tab.
aw. Use Children as the name of the second tab.
Save but do not close the Session Charts form.
With the Session Charts form still open in Design View, switch to viewing the pie chart in the first tab control. Modify the chart type so that it appears as a Bar chart. Compare the chart on the first tab control to the chart in Figure 8 below. Save but do not close the Session Charts form.
Figure 8: Session Charts Form – Adults Tab in Design View
With the Session Charts form still open in Design View, switch to viewing the second tab control. Insert a chart into the second tab control as described below:
ax. Insert a chart in the upper left corner of the tab based on the Session Totals query.
ay. Use the SessionID and SumOfChildTotPrice fields (in that order) in your chart.
az. Use 3-D Pie Chart as the chart type for your chart.
ba. The SessionID field should be the field for series, and the SumofChildTotPrice (which will be renamed SumofSumofChildTotPrice) field should be the field for data in the graph. (Hint: These fields should automatically be assigned to the correct areas in the Chart Wizard.)
bb. Use Total Children Fees by Session as the name of your chart.
bc. Display a legend in the chart.
Save the form, compare it to Figure 9 below, and then close the form. (Hint: If your chart appears different from the one shown in Figure 9, switch to Layout View and then back to Design View to refresh the form.)
Figure 9: Session Charts Form – Children Tab in Design View
Open the Parents and Children report in Design View. Remove the page header and footer from the report. Save but do not close the report.
With the Parents and Children report still open in Design View, add a text box control to the ParentID header as described below:
bd. Add the text box control to the ParentID header in the approximate location shown in Figure 10 below. (Hint: The left edge of the control should align with the left edge of the ParentID control.)
be. Enter the following expression into the text box control: =[FirstName]&" "&[LastName]
bf. Reposition and resize the text box control so that it is approximately as long as the ParentID control above it and it appears in the approximate location shown in Figure 10.
bg. Set the Border Style property of the text box control to Transparent.
bh. Change the label associated with the text box to Parent Name. (Hint: Do not type the period.)
bi. Reposition and resize the label as necessary so that all text in the label is visible and the label appears in the approximate location shown in Figure 10.
Figure 10: Parents and Children Report in Design View
bk. Base your subreport on the Parent-Child Query.
bl. Include the ParentID, Camper.FirstName, Age, and Gender fields (in that order) in the subreport.
bn. Use the default name Parent-Child Query subreport as the name of the subreport.
bo. In Design View, delete the label associated with the subreport.
bp. Reposition and resize the subreport to the approximate location shown in Figure 10.
bq. If necessary, resize the Detail section to the approximate size shown in Figure 10.
Save the report and compare it to Figure 10. Close the Parents and Children report.