You work as the database manager at Replacements, Ltd., located in Greensboro, North Carolina. Replacements, Ltd., has the world’s largest selection of old and new dinnerware, including china, stoneware, crystal, glassware, silver, stainless steel, and collectibles. Your task is to add validation rules, create a form that data entry associates can use to add new items to the inventory, and create a new table to classify merchandise as china, crystal, or flatware. You will also use queries and reports to analyze existing data.
For the purpose of grading the project you are required to perform the following tasks:
Start Access. Open the file namedexploring_a05_grader_h1_Replace.accdb.
Use Design view to create a new table. Add ProductLineID as the first field name, with data type AutoNumber; addProductLineDescription as the second field name, with data type Short Text and field size 10.
Ensure ProductLineID is set as the primary key. Save the table and name it Product Lines. Add three records: China,Flatware, and Crystal. Close the table.
Open the Inventory table in Design view. Set the OnHandQty and ProductLineID fields to Required.
Establish a validation rule for the OnHandQty field that requires the value to be greater than or equal to zero. Create validation text for the OnHandQty: The value of this field must be 0 or greater. (include the period). Save the table. Switch to Datasheet view. Change the OnHandValue in the first record to –3. The validation text appears. Press Esc to restore the original OnHandValue value. Close the Inventory table.
Open the Employees table in Design view. Add a phone number input mask for the Phone field, storing with the symbols. Save and close the table.
Open the Inventory table in Design view. Change the Data Type of the ProductLineID field to Lookup Wizard. Use the Product Lines table for the values in the lookup field, select both fields in the table, accept the default sort, hide the key field from the user, and then accept the default nameProductLineID. Save the table. Switch to Datasheet view. Change the product line to Crystal in the first record and click the second record. If the record updates successfully, change the first record back to China. Close the table.
Open the Find Low Quantities query in Design view. Add criteria for the OnHandQty field. The user should be prompted to Enter Threshold. The query should display all results that are less than or equal to the threshold but greater than or equal to 1. Run the query. Enter 2 when prompted to Enter Threshold. You should have one result. Save and close the query.