EX19_AC_CH10_GRADER_HOE_AS- Payroll 1.1

profilethomast2093
Thomas_EX19_AC_CH10_GRADER_HOE_AS.zip

EX19_AC_CH10_GRADER_HOE_AS_Instructions.docx

Grader - Instructions Access 2019 Project

EX19_AC_CH10_GRADER_HOE_AS- Payroll 1.1

Project Description:

You are employed at Specialty Foods, Ltd., a small international gourmet foods distributor. The company has asked you to modify the database to automate certain tasks. You decide to create a few macros and add a menu for the common forms and reports. You will also modify the record source of one of the reports.

Steps to Perform:

Step

Instructions

Points Possible

1

Start Access. Open the downloaded Access file named Exp19_Access_Ch10_HOEAssessment_Payroll.accdb.Grader has automatically added your last name to the beginning of the filename. Save the file to the location where you are storing your files.

0

2

You will create an event-driven data macro that will populate a new field automatically each time a record is added to the table. Open the Employee table in Datasheet view, observe the data, and then switch to Design view. Add a new field, TenYearDate, with the data type Date/Time below the HireDate field. Save the table.

10

3

Create a data macro attached to the Before Change event. Use the SetField Action to populate the TenYearDate field in the table. The TenYearDate will always be 3,653 days after the HireDate. Save the macro. Close the macro. Save the table.

12

4

You will change type value in the first record, and then move to the second record to trigger the macro. The TenYearDate will be the date on which an employee receives a trip and a bonus from the company. Switch to Datasheet view of the Employee table. Retype the HireDate in the first record (EmpID 1) and press DOWN ARROW. The macro will be triggered and automatically fill in the TenYearDate with the employee's anniversary date.

6

5

Repeat the test on the second and third records (EmpID 2 and 3). Close the table.

6

6

Open the Main Menu form in Design view. Add a button below the Forms label that will open the Enter Employees form in the database. Set it at the 2" mark on the vertical ruler and the 1" mark on the horizontal ruler. Set the height of the button to 0.5" and the width to 1". The button should have the caption Enter Employees with the button named as cmdEnterEmployees.

12

7

Add a button below the Reports label that will print preview the Salaries by Gender report. Set it at the 2" mark on the vertical ruler and the 4" mark on the horizontal ruler. Set the height of the button to 0.5" and the width to 1". The first button should have the caption Salaries Report with the button named as cmdSalaries.

12

8

Save the form, switch to Form view, and then test the buttons. Close all objects except the Main Menu form.

0

9

Switch to Design view, add a Close Database button that exits Access to the top-right corner of the form, at the 0" mark on the vertical ruler and the 5" mark on the horizontal ruler, with a height of 0.5" and a width of 1". Name the button cmdQuit.

12

10

Modify the embedded macro in the On Click property of the cmdQuit button. Add a MessageBox action to the macro to display the message Check all updates before quitting! and set the Type to Information. Move the action up to before the QuitAccess action. Change the option under QuitAccess from Prompt to Exit. Save and close the macro.

12

11

Save the form, switch to Form view, and then set the Main Menu form to display when the database opens. Test the Close Database button. Reopen the database.

8

12

You want to modify the records displayed in the Salaries by Gender report. You will use an SQL statement to modify the record source so that only employees who live in Colorado display in the report. Open the Salaries by Gender report in Design view. Open the Property Sheet and click in the Record Source property box. Modify the existing SQL statement in the Record Source property of the report. The statement should select the same fields for employees where the State is CO. Save the report. Test the report in Print Preview and close the report.

10

13

Close all database objects. Close the database and then exit Access. Submit the database as directed.

0

Total Points

100

Created On: 07/11/2019 1 EX19_AC_CH10_GRADER_HOE_AS- Payroll 1.0

Exp19_Access_Ch10_HOEAssessment_Payroll.accdb

EmpID HireDate Active MaritalStatus Exemptions Gender Lastname Firstname Address City State Zipcode Jobcode Region Salary 401K
1 7/29/20 true Single 3 Male Williams Timothy 4231 South Race Street Denver CO 80221 150 300 ¤ 58,000.00 0.03
2 11/29/19 true Single 3 Male Knoff Mark 345 E. Champlain Way Burlington VT 05403 100 100 ¤ 54,000.00 0.01
3 6/29/19 true Married 3 Male Keating Brian 303 Flagstaff Road Boulder CO 80301 200 300 ¤ 89,500.00 0.05
4 1/12/19 true Single 1 Male Martinez Paul 3440 Worthington Street Albany NY 12202 100 200 ¤ 54,250.00 0.02
5 9/29/18 true Married 2 Female Jackson Samantha 241 112th NE Tacoma WA 98403 150 400 ¤ 78,000.00 0.07
6 5/19/18 true Married 5 Male Andersen Dennis 308 North Lake Drive Minneapolis MN 55432 100 200 ¤ 64,000.00 0.03
7 4/15/18 true Single 1 Female Willman Tricia 27485 St. Helena Way Napa CA 94558 150 400 ¤ 81,000.00 0.08
8 3/19/18 true Married 4 Female Smith Amanda 601 E. 2nd Avenue Denver CO 80221 100 300 ¤ 55,000.00 0.04
9 1/30/18 true Married 3 Male Watson Matthew 201 Howder Street Hillsdale MI 49242 150 200 ¤ 58,500.00 0.04
10 1/30/16 true Married 2 Female Hansen Patricia 3121 Navy Pier Drive San Diego CA 92106 250 400 ¤ 90,500.00 0.09
11 8/19/14 true Single 1 Male Tucker Bill 3111 Stoney Brook Lane Wheaton IL 60189 200 200 ¤ 87,000.00 0.05
12 8/19/14 true Single 1 Female Keller Sally 5457 S. Monaco #210 Englewood CO 80237 100 300 ¤ 61,000.00 0.03
13 8/19/14 true Single 1 Female Bolton Marianne 2052 Lancaster Way Baltimore MD 21226 150 100 ¤ 77,000.00 0.04
14 6/16/14 true Single 1 Male Epstein Abraham 707 Mountain View Pleasanton CA 94588 200 400 ¤ 88,000.00 0.06
15 11/16/13 true Married 4 Male Collins Jeff 23 Old Towne Road Brookline MA 02446 100 100 ¤ 55,000.00 0.02
16 5/29/12 true Married 3 Female Hunt Roseanne 2964 Irving Lane Groton CT 06439 250 100 ¤ 89,000.00 0.07
JobCode JobTitle MinSalary SalaryMidrange MaxSalary Bonus mSysRowId
100 Associate Consultant ¤ 54,000.00 ¤ 64,125.00 ¤ 74,250.00 0.1
150 Senior Consultant ¤ 59,000.00 ¤ 69,125.00 ¤ 79,250.00 0.15
200 Project Manager ¤ 64,200.00 ¤ 74,350.00 ¤ 84,500.00 0.2
250 Senior Project Manager ¤ 69,750.00 ¤ 79,625.00 ¤ 89,500.00 0.25
ID mSysRowId
1
OfficeNumber Region Address City State ZipCode Phone mSysRowId
100 East 800 Morris Avenue Boston MA 02112 6175552222
200 Midwest 204 Michigan Avenue Chicago IL 60632 3125553333
300 Rocky Mountain 1600 Broadway Denver CO 80234 3035552222
400 West 4300 El Camino Real Palo Alto CA 94306 6505558888
SELECT DISTINCTROW * FROM Employee;
SELECT Employee.Gender, Employee.Salary, Employee.Firstname, Employee.Lastname, Employee.State, Employee.Jobcode FROM Employee;