USING MICROSOFT ACCESS 2016 Independent Project 2-5
Independent Project 2-5 Life’s Animal Shelter wants to expand the database created in the Independent Project 1-5 in Chapter 1. To ensure consistency, the starting file is provided for you. In this project, you use Design view to create a second table, edit field properties, integrate data integrity rules, and enter data. You also create a relationship between the two tables and enforce referential integrity constraints. Finally, you add data using the relationship between tables. This project has been modified for use in SIMnet®.
Skills Covered in This Project • Create a table using Design view. • Add fields into a table. • Edit field properties in Design view. • Create an input mask. • Create a validation rule and validation text. • Save a table.
• Enter records. • Create a foreign key. • Create a 1:M relationship between tables. • Enforce referential integrity. • View a table in Datasheet view and expand
related records.
1. Open the LifesAnimalShelter-02 database start file.
2. The file will be renamed automatically to include your name. Change the project file name if
directed to do so by your instructor.
3. Enable content in the security warning.
4. Create a new table using Table Design.
a. Add the following fields into the table and set field properties:
b.
c.
d.
e.
f.
g.
h.
i.
j. Set OwnerID as the primary key.
k. Save the table as Owners.
5. Create an input mask for the Phone field.
a. Select the Phone field.
b. Use the Phone Number Input Mask.
c. Don’t make any changes to the mask or placeholder character and select the Without the
symbols in the mask, like this radio button.
Step 1: Download start file
Access 2016 Chapter 2 Using Design View, Data Validation, and Relationships Last Updated: 10/9/18 Page 2
USING MICROSOFT ACCESS 2016 Independent Project 2-5
d. Finish the Input Mask Wizard.
e. Save the table.
6. Create and test a field validation rule.
a. Select the OwnerID field.
b. Type Like "####" in the Validation
Rule.
c. Type You must enter a 4-digit
Owner ID as Validation Text.
d. Save the table and switch to
Datasheet view.
e. Test the rule by typing 11 in the first
row of the OwnerID column.
f. Move to the OwnerLastName
field. The message box should
display the validation text message (Figure 2-92) since the OwnerID is not four digits long.
g. Delete the contents and type 1111 into the OwnerID field.
h. Verify that you successfully move to the OwnerLastName field since 1111 meets the
validation rule criteria.
i. Delete this test data record.