Escolar Documentos
Profissional Documentos
Cultura Documentos
1. Open the MagnificentMeals.accdb database file from your student data files and save it as [your
initials] Access Project 1.
2. Open the Meals table in Datasheet view. Verify that the table does not contain any records.
3. Edit field properties of the Meals table in Design view.
a. Switch to Design view.
b. Change the Data Type of the DateAddedToMenu field to Date/Time.
c. Select a Short Date Format for the DateAddedToMenu field.
d. Make all fields Required.
e. Save the table.
4. Create a lookup field using the Lookup Wizard.
a. For the MealType field, use the Lookup Wizard to create a lookup field.
b. Type the following values as list choices:
Main Course
Side Dish
Soup
Dessert
c. Dont change the label for the lookup field; it should be MealType.
Access 2013: In Practice
Page 1 of 5
5.
6.
7.
8.
Page 2 of 5
Page 3 of 5
10. Edit the form properties to limit user edits and deletes.
a. Open the Property Sheet of the form.
b. Select Form in the Selection type.
c. Set the Data Entry, Allow Deletions and Allow Edits properties to No.
d. Set the Allow Additions property to Yes.
e. Close the Property Sheet.
f. Save the form.
11. Test the form.
a. Switch to Form view.
b. Enter the following data:
Menu ID
11
Meal Name
Oatmeal Raisin Cookies
Description
Soft, chewy oatmeal and raisin cookies are
flavored with just the right amount of
brown sugar and cinnamon.
Meal Type
Dessert
3-Serving Cost
5.84
6-Serving Cost
10.00
Serving Size
2 cookies
Calories
150
Total Fat
66
Sodium
182
Cholesterol
29
Total Carbs
25
Protein
2
Data Added to Menu
5/1/2014
c. Use the navigation buttons to move back to the first record.
d. Notice that the Delete button on the Home tab is not enabled.
e. Click in the Meal Name text box. Try to type in that field. Access should not allow you to make
any edits.
f. Close the form.
12. Create a query and sort the query results.
a. Create a new query in Design view.
b. Add the Meals table to the query and add the following fields into the query: MenuID,
MealName, MealType, ServingSize, and Calories.
c. Sort the query by the Calories field in ascending order.
d. Save the query as MealsByType.
e. Run the query to confirm it displays the 11 records in ascending order by the Calories field.
13. Edit the query to add a parameter that allows the user to enter the meal type when the query runs.
a. Switch back to Design view.
b. Type [Enter the Meal Type] as the criterion for the MealType field.
c. Save the query.
14. Test the query to verify that it works.
a. Run the query.
b. Type Main Course in the Enter Parameter Value dialog box, and click OK.
Page 4 of 5
c. Verify that the datasheet shows the four records that meet the criteria (Figure 3).
d. Close the query.
Page 5 of 5