| |
Exercise 1
- Create a new form, in your Unit 3 database do not attach a table to it.
- Change the Caption of the form to display, Payroll?
- Turn Record Selectors, Navigation Buttons and Dividing Lines to No
- Turn Auto Centre to Yes.
- Change the Width to 4 inches.
- Change Scroll Bars to none
- Save the form with the Name of Lesson2Exercise1.
- Create a form as shown, remember to use appropriate names for variables and objects and
to include comments.
- When the value is entered in for the department code, the data in the bottom section
will up-date. You will need to use the Change event of the text box.
- The number of hours the employee has worked is multiplied by the rate determined by the
Department Code. The various department codes, the department name and the rate of pay is
given in the table below:
Department
Code |
Department
Name |
Pay
Rate |
1 |
Purchasing |
6.75 |
2 |
Sales |
7.85 |
3 |
Accounting |
10.00 |
4 |
Administration |
15.45 |
|