Lesson 2: Managing Tables
Try This: Do the following steps
1. Open the Brown Bag Lunch database you
have been working on.
Or, you may download
BBL Adv ver2.accdb.
2. Edit the Products Table, tblProducts, in
Design View. Add a new Field:
Field Name: Price
Data Type: Currency
Save the Table and close it.
3. Create a Select Query and add
tblProducts as the Record Source. Add all Fields to the QBE Grid. Run
the Query to test it. Save the Query as ProductPricesUQ.
4. Add a Parameter to the ProductPricesUQ.
Select the Type and type the following Criteria: "Sandwich" Run the
Query to test it. Note how many Records there are.
5. Change ProductPricesUQ from a Select
Query to an Update Query.
6. The Criteria for Type is “Sandwich.” In
the QBE grid UPDATE the Price to $7.50. Run the Query and update the
Records in tblProducts.
7. The Criteria for Type is “Breakfast.” In
the QBE grid UPDATE the Price to $5.50. Run the Query and update the
Records in tblProducts.
8. The Criteria for Type is “Snacks.” In
the QBE grid UPDATE the Price to $10.50. Run the Query and update the
Records in tblProducts.