Shelly Cashman Access 365 | Modules 1-3: SAM Capstone Project B City of Silverton
CREATING TABLES, QUERIES, FORMS, AND REPORTS
· Excel Projects Help

GETTING STARTED
1. Save the file SC_AC365_CS1-3B_FirstLastName_1.accdb as SC_AC365_CS1-3B_FirstLastName_2.accdb
a. Edit the file name by changing “1” to “2”.
b. If you do not see the .accdb file extension, do not type it. The file extension will be added for you automatically.
2. To complete this Project, you will also need the following files:
Support_AC365_CS1-3B_Donors.xlsx
3. With the file SC_AC365_CS1-3B_FirstLastName_2.accdb open, ensure that your first and last name is displayed as the first record in the _GradingInfoTable table.
a. If the table does not display your name, delete the file and download a new copy.
PROJECT STEPS
1. The city of Silverton, Nevada, conducts fundraising campaigns for nonprofit agencies and projects in the city. As a member of the Planning Division, you use an Access database to help track the campaigns, events, donors, and donations. Create a new table in Datasheet View with the following options to store data about donors who contribute to fundraising events:
a. Rename the default primary key ID field to DonorID and change the data type to Short Text. (Hint: DonorID should remain the primary key.)
b. Add a new field with the name DonorFirst and the Short Text data type to store donor first names.
c. Add a third field to the table with the name DonorLast and the Short Text data type to store donor last names.
d. Add a fourth field to the table with the name PostalCode and the Short Text data type to indicate the donor's postal code. Save the table with the name Donors and close the table.
2. Add data to the Donors table as follows:
a. Use the Import Spreadsheet Wizard to import the data from the Support_AC365_CS1-3B_Donors.xlsx file and append it to the Donors table. Do not save the import steps.
b. Open the Donors table in Datasheet View to confirm that it contains 15 records and then close the table.
3. Create a new table in Design View with the following options to store data about city divisions and the budgets they have for charitable campaigns:
a. Add a field with the name DivisionID and the Short Text data type. Change the field size to 5.
b. Set DivisionID as the primary key for the table.
c. Add a field with the name DivisionName and the Short Text data type to store department names.
d. Add a third field with the name Budget and the Currency data type to store budget amounts. Save the table with the name Divisions and switch to Datasheet View.
4. With the Divisions table open in Datasheet View, add the record shown in Table 1. Resize the DivisionName field to display the entire field value. Save the changes and close the Divisions table.
Table 1: New Record for the Divisions Table
DivisionID | DivisionName | Budget DV300 | Building Permits | $6,000
5. Open the Donations table in Datasheet View and delete the record for the donation with a DonationID of 26 since that donation has been withdrawn.
6. Switch to Design View for the Donations table and make the following changes to clarify the purpose of one field and add another:
a. Change the name of the Pledge field using the more accurate PledgeDate as the new field name.
b. Add a new field to the end of the table with the name PmtDate and the Date/Time data type to store the date the donation was received. Save the changes but do not close the table.
7. With the Donations table still open in Design View, add a new field as follows to indicate each participant's status:
a. Add a field with the name PledgeType to the end of the table.
b. Select Lookup Wizard at the data type.
c. Select the option to type in your own values.
d. Type the following three values (in the order shown) as the list of possible values for the field: Matching, One-Time, and Recurring. Limit the field values to only the items in the list and do not allow multiple values for the field. Save the changes to the table and close it.
8. Open the Events table in Design View and perform the following tasks to refine the fields in the table:
a. Make the EventID field the primary key of the table.
b. Change the field size of the EventID field to 5.
c. Change the data type of the SetupCost field to Currency with 0 decimal places.
d. Add the text Budget for setup as the description for the SetupCost field. Save the changes to the table and then close it. (Hint: Because a field size was reduced, a warning message appears asking if you want to test the data. The data is valid, so ignore this message and continue saving the table.)
9. Open the Campaigns table in Datasheet View and make the table display more meaningful information as follows:
a. Sort the records in ascending order by Division.
b. Add the Total row to the datasheet and calculate the Sum for the Goal field.
c. Resize the Goal field to its best fit to display the entire total. Save the changes to the table and close it.
10. Open the Donations table in Design View and improve data-entry accuracy as follows:
a. Enter a Validation Rule property for the Amount field to ensure that its values are greater than 0.
b. Enter the text Must be more than $0 in the Validation Text property box as the message to display to users. Save the changes to the Donations table and close it. (Hint: Because a validation rule was added, a warning message appears asking if you want to test the data. The data is valid, so ignore this message and continue saving the table.)
11. Use the Form Wizard to create a data-entry form for the Donors table with the following options:
a. Include the DonorID, DonorFirst, DonorLast, and PostalCode fields.
b. Select the Columnar layout.
c. Assign the title DonorEntry to the form. View the form and then close it.
12. Create a split form for the Donations table to display a simple form with a single record and a datasheet of all the records in the table. Save the form using SplitDonations as the form name, and then close the form.
13. Use the Report Wizard to create a report for the Campaigns table with the following options to list campaign information:
a. Include the CampaignType, Division, EmployeeID, and Goal fields.
b. Do not add any grouping levels.
c. Sort the records in ascending order by Division.
d. Select the Tabular layout and the Portrait orientation.
e. Assign the title CampaignList to the report. View the report and then close it.
14. Use the Simple Query Wizard to create a query based on the Events table with the following options to list event contact information:
a. Include the EventID, EventTitle, ContactFname, and ContactLname fields in that order.
b. Save the query using EventContacts as the query name. View the query results and then close the query.
15. Create a query in Design View for the Donations table with the following options to list donations made by credit card:
a. Include the DonationID, DonationType, Amount, and Paid fields in the query design grid.
b. Sort the records in descending order by Amount.
c. Add criteria to select only those records where Credit card is the DonationType.
d. Hide the DonationType field values because they will be implied by the query name.
e. Save the query using CreditCardDonations as the query name. Open the query in Datasheet View to display the results and then close it.
16. Open the EventCosts query in Design View and make the following changes to the query to list events with setup and cleanup costs of $200 or less:
a. Add the EventTitle field to the query design grid immediately following the EventID field.
b. Add criteria to select only those records where the SetupCost field value is less than or equal to 200 and the CleanupCost is less than or equal to 200. Open the query in Datasheet View and confirm that three records appear in the EventCosts query results. Save and close the query.
17. Create a query in Design View based on the Campaigns and Donations tables with the following options to list campaign donations:
a. Add the Campaigns table and the Donations table to the Design window. Access should automatically join the tables by the common fields CampaignID and Campaign.
b. Add the CampaignID, CampaignType, and Goal fields from the Campaigns table to the query design grid in that order.
c. Add the DonationID and Amount fields from the Donations table in that order.
d. Save the query using CampaignDonations as the query name. Open the query in Datasheet View to display the results and then close it.
18. Open the CashOrCheck query in Design View and make the following changes to list donations made by cash or check:
a. Move the Donor field so that it is the first field in the query design grid.
b. Add criteria to select only those records where the value in the DonationType field is Cash or Check. Hide the DonationType field.
c. Sort the records in ascending order by Donor and then by Amount. Open the query in Datasheet View and confirm that it matches Figure 1. Save and close the query..
Figure 1: CashOrCheck Query Results
19. Use the Crosstab Query Wizard as follows to create a crosstab query based on the Donations table to show how many donations of each type are for each event:
a. Use the Campaign field for the row headings.
b. Use the DonationType field for the column headings.
c. Use a Sum of the Amount field as the calculated value for each row and column intersection.
d. Save the query using Donations_Crosstab as the query name. View the query and then close it.
20. Open the EmployeeNames query in Design View and add criteria to select only those records where the EmployeeLast field value begins with C followed by any other letters. Save the changes to the query. Display the query in Datasheet View, confirm that three records appear in the query results, and then close it.
21. Open the DonationsByEvent query in Design View. Add parameter criteria to the Event field to replace the current "EV107" criteria. The new parameter criteria should prompt the user with Enter desired event as the text so that users can specify the event. Save the query, and then display it in Datasheet View. Enter EV112 when prompted. Confirm that four records appear in the query results and then close the query.
22. Open the AllCosts query in Design View. Modify the query by creating a calculated field that sums the total of SetupCost, StaffCost, and CleanupCost fields to display the total cost. Use TotalCost as the name of the calculated field. Save the query, open it in Datasheet View to display the results, and then close it.
23. Open the CombinedCosts query in Design View. Modify the query by sorting the records in descending order by the calculated field TopCosts and display only the top 25% of the records. Save the query. Display the query in Datasheet View, confirm that four records appear in the query results, and then close it.
24. Open the SortedDonations query in Design View. Modify the query as follows to display each donation type only once:
a. Sort the DonationType field in ascending order.
b. Add the Total row to the query design grid.
c. Sum the Amount field values and accept the default for the DonationType field so that each donation type appears only once. Save the query. Display the query in Datasheet View, confirm that three records appear in the query results, and then close it.
25. Create a query in Design View for the Events table with the following options to display the totals for each type of event cost:
a. Add the SetupCost, StaffCost, and CleanupCost fields to the query design grid.
b. Add the Total row to the query design grid.
c. Calculate the Sum of each of the three fields.
d. Save the query using AggregateCosts as the query name. Open the query in Datasheet View, confirm that it matches Figure 2, and then close it.
Figure 2: AggregateCosts Query Results
26. The city managers confirm most fundraising campaigns before announcing them. Use an Update query to update the values in the Status field of the Campaigns table to Confirmed for all records. Run the query, save it using UpdateStatus as the name of the query, and then close it.
27. Open the Campaigns table in Datasheet View and change the Status value for the campaign with a CampaignID of CP213 (Year-End) to Pending to update the data. Close the table.
28. The NewEvents table contains records that should be added to the Events table. Create an Append query with the following options to add the records:
a. Select all the fields from the NewEvents table in the same order as they appear in the field list. Select the fields individually for the query design grid; do not use the (*) asterisk.
b. Select Events as the destination table in the Append dialog box.
c. Save the query using AppendEvents as the name, run it, and then close it. The query should append eight records.
29. Donors who pledged the highest donation amount are often willing to donate additional funds. Create new table for these donors using a Make Table query as follows:
a. Select all fields from the Donations table in the same order as they appear in the field list. Select the fields individually for the query design grid; do not use the (*) asterisk.
b. Add criteria to select only those records where the Amount field value equals 125, which is the highest donation amount.
c. In the Make Table dialog box, assign the name RepeatDonors to the new table.
d. Save the query using HighDonations as the query name, run it, and then close the query. The new RepeatDonors table should contain seven records.
30. Create a Delete query for the Events table with the following options to remove a cancelled event:
a. Select the EventID field from the Events table.
b. Add criteria to delete only those records where EV120 is the EventID.
c. Save the query using DeleteEvent as the query name, run it, and then close it. The query should delete one record.
31. Open the Relationships window and add the Employees table and the Campaigns table to the Relationships window. Create a relationship between the EmployeeID field in the Employees table and the EmployeeID field in the Campaigns table. Make the relationship enforce referential integrity. Save the relationship and close the window. 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 website to submit your completed project.
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 website to submit your completed project.
