|
|
 |
Comp25:
Access -
Customer Orders
Learning Objectives
- To enhance your customer database by keeping track of your orders, including the employees that sold
them.
- To establish Relationships between tables using the LookUp
Wizard data type.
Warning:
When creating fields and tables, it is highly advised that you keep the exact same names shown in
the assignment directions. Pay careful attention to capitalization and spaces (or lack thereof), and
do not skip any steps. Failure to do this could cause a problem down the road which will require
significant time to fix.
You cannot begin this assignment until you have finished
Populate Some
Tables.
Steps to Take
- Using Access, edit your existing Company-Database.mdb
file.
Note: For this assignment, you are going to create dynamic drop-down menus for datatypes CustomerID,
EmployeeID, and ProductID. This will enable you to choose
customers, employees, and products when creating new records in
this table, seeing their actual name rather than just their ID
number. This process will automatically create relationships
between all four tables, which is critical to successful
completion of future tasks.
- Create a new table in this database (in Design View) for your
Orders. Add the following fields with associated (data
types) in parentheses:
- OrderID (AutoNumber)
- CustomerID(Lookup Wizard)
- CHOOSE: LookUp Wizard from the drop-down list of Data Types
- CHOOSE: "I want the LookUp Column to look up values in a
table or query"
- CHOOSE: Customer Table
- CHOOSE/DOUBLE-CLICK: LastName Field
- CLICK: Finish
- Save your table as "Orders" and let Access designate OrderID as your
Primary Key.
- EmployeeID (Lookup Wizard)
- CHOOSE: LookUp Wizard from the drop-down list of Data
Types
- CHOOSE: "I want the LookUp Column to look up values in a
table or query"
- CHOOSE: Employee Table
- CHOOSE/DOUBLE-CLICK: EmployeeName Field
- CLICK: Finish & Save
- ProductID (Lookup Wizard)
- CHOOSE: LookUp Wizard from the drop-down list of Data Types
- CHOOSE: "I want the LookUp Column to look up values in a
table or query"
- CHOOSE: Product Table
- CHOOSE/DOUBLE-CLICK: ProductName Field
- CLICK: Finish and Save
- OrderPrice (Currency)
- OrderDate (Date)
- Populate your table with 60 orders, giving each Customer an
average of 2 orders, some more, some less. Use somewhat random (but realistic)
prices and dates (throughout the current year) so that your reports will be interesting.
All fields for each order must be completed.
- Edit your table again and change the Default Value
of OrderDate to date() . Create 5 more orders that you just sold today.
Close the Orders table.
- Pull down the Tools menu and choose
Relationships. You should now see the tables of your
database along with the relationships defined, linking the
primary keys as you have requested when creating Lookups.
- Exit from Access and upload your work using Blackboard.
Grading Guidelines
This assignment will be graded using the following guidelines:
|
Grading Rubric: |
|
|
|
On-Time |
25% |
12.5 |
|
Accuracy |
75% |
37.5 |
|
|
|
|
|
Total Points Possible: |
100% |
50 |
|