Page 123 - AIS access_chang_ingraham
P. 123
121
10. The thirteenth field is MaritalStatus, the Field Size is 1, and the Caption is
Marital Status. The Data Type is Text. We will use an Input Mask for this field to assist
the users on input of the data. In the Input Mask property, type>L. Unless an employee
declares his or her marital status to be manied, by default the law considers them to be sin-
gle. Therefore, we will set the Default Value at "S." We also want to ensure that no value
other than "M" for Man-ied or "s" for Single is entered in this field. Thus, we will set the
Validation Rule as = "S" Or "M". Finally, we want to include a Validation Text inform-
ing the user of the input requirements should he or she make an invalid entry in this field.
e "Enter S for Sin Ie· " .
11. The fourteenth field is TaxBracket, the Data Type is Text, the Field Size is 2,
and the Caption is Tax Bracket.
12. The fifteenth field is AllowanceNo and the Data Type is Number. The Field Size
is Byte and the Decimal Places is set to 0 since the value for this field will always be a
whole number. The Caption is Allowance No.
13. The sixteenth field is PayStatus, the Data Type is Text, the Field Size is 1, and
the Caption is Pay Status. The Data Type is Text. Use the Input Mask property to assist
the users on input of the data by typing > L. We want to ensure that no value other than
"H" for Hourly or "s" for Salaried is entered in this field. Thus, we will set the Validation
Rule as = "H" Or "S". We also want to include a Validation Text informing the user of
the input requirements should he or she make an invalid entry in this field. Type "Enter
H for Hourly; S for Salaried" in the Validation Text property.
14. The seventeenth field is HPayRate, the Data Type is Cunency, and the Format
is Cunency. Set the Decimal Places to 2 and the Caption to Hourly Pay Rate.
15. The eighteenth field is SPayRate, the Data Type is Cunency, and the Format is
Cun-ency. Set the Decimal Places to 2 and the Caption to Salaried Pay Rate.
16. The nineteenth field is EmployeeStartDate. We will change the Data Type to
Date/Time. Once again, click on the Build button to invoke the Input Mask Wizard and
select the Short Date Input Mask. Click on Finish. The Caption is Start Date.
17. The twentieth field is DeptNo, the Data Type is Text, the Field Size is 2, and the
Caption is Dept No.
18. The last field is JobTitle, the Data Type is Text, the Field Size is 35, and the
Caption is Job Title.
The Employee Form
Recall that we created fields in the Employee Table for three categories: the employ-
ee's personal information, the employee's job information, and the employee's payroll
information. As we design the Employee Form, we will keep those fields together
in separate categories to make the form more user-friendly and to facilitate the input
of data.
1. Click on the Forms object and click on New .~= icon in theTraggsCh6Student:
Database menu window. Select Design View and select Employee Table from the pull-down
menu.

