The purpose of this hands-on computer exercise is to have you learn how to use Microsoft Access to: create a database table, enter data into the table, create a report based on the data, and print the table and the report.
1. Create a new Database and name it ORDERS. Make sure it is saved in a location where you can find it again.
2. Create a new table using design view
3. Use the following file layout to create the structure:
Field Name Field Type Field Size Valid IF Clause
Cust Name text 25
Item text 1 a or b or c
Quantity number (integer)
Purchase Date date/time
NOTE: the field size and valid IF clause are to be done at the bottom of the design screen where it says "field properties"
4. Save the table as CUSTOMER ORDERS
5. Change to "Datasheet View" and enter the following records:
Cust Name Item Quantity Purchase Date
John Thibodaux a 1 9/09/14
Jason Breaux a 2 10/02/13
Dan Jones b 7 12/11/13
Ed Jones c 2 8/15/14
Susan Breaux b 12 8/02/14
Bill Smith c 4 9/01/14
Your Name b 5 current date
6. Print the table
7. Create a tabular report using the report wizard. All fields should be on the report. Print the report. You do not need to save the report unless you want to. They are easy enough to recreate if needed.
The purpose of this exercise is to practice using queries, calculated fields, and reports.
1. Use the same database (Orders) and table (customer orders) you created in H2
2. Create a new query.
For each question you are to: 1) design the query in the query design view, 2) execute the query by clicking on the exclamation button bar, 3) note the number of records found or other requested information in the space provided, and 4) indicate the query you used in the space provided below.
Example:
Find all orders for item b. Number Found: 3
Field:
|
Cust Name
|
Item
|
Quantity
|
Purchase Date
|
Sort:
|
|
|
|
|
Show:
|
X
|
X
|
X
|
X
|
Criteria:
|
|
b
|
|
|
Or:
|
|
|
|
|
1. Find all orders for item a. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
2. Find all orders where item is not equal to a. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
3. Find all orders from customers with the last name of Breaux. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
4. Find all orders with purchase date before July 1, 2014. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
5. Find all orders with item equal a and quantity greater than 1. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
6. Find all orders with item equal a or c. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
7. Find all orders with item equal c or quantity less than 7. Number Found:
Field:
|
|
|
|
|
Sort:
|
|
|
|
|
Show:
|
|
|
|
|
Criteria:
|
|
|
|
|
Or:
|
|
|
|
|
8. Use totals button to find the average quantity. Average:
Fill in the average above, and indicate below the query you used to find the average.
9. Create a calculated field called Due Date to hold the purchase date plus 30 days. Find all orders with a Due Date after July 15, 2014. For the calculated field, indicate both the calculation used to create it and the query used to answer the question. Note: when entering the criteria for due date, remember to use # signs around the date.
Number Found:
Field:
|
|
|
|
|
|
Sort:
|
|
|
|
|
|
Show:
|
|
|
|
|
|
Criteria:
|
|
|
|
|
|
Or:
|
|
|
|
|
|
10. Based on query 9 above, create and print a tabular report. The report should include:
a. all fields from the table and the calculated field
b. the report title should be Due Date Report
c. save the report as due date report
d. print the report
Deliverables: All of the questions on this assignment should be answered, and the report created in question 10 should be attached to the back.
The purpose of this exercise is to practice using multiple tables in a query and report.
1. Use the same database (Orders) and table (Customer Orders).
2. Create a new table using design view. Use the following file layout:
Field Name Field Type Field Size Other
Item Text 1 Set as Primary Key
Description Text 35
3. Save the table as "Item Description".
4. Open the table and enter these records:
Item Description
a Apricot
b Banana
c Cereal
5. Link the customer orders table with the item description table by "adding" them both in a new query.
6. Create a query to answer the following:
Which customers ordered any item in quantity less than 6?
7. Create a report based on the query in number 6.
The report should ONLY include the customer's name, the description of the item, and the quantity ordered.