cgsAccess 365/2021 Capstone – Level 1 Working with a Sales Database

1. The file will be renamed automatically to include your name. Change the projectfile name if directed to do so by your instructor, and save it.
2. Open the PopcornSales table and add three records to the table with the following
data. (Hint: The first field in the table, SaleID, is an AutoNumber field, so there is
nothing to enter for each record.)
SaleDate
SaleLocation
PaymentType
11/1/2023
Vermont Avenue
Credit Card
11/1/2023
American University
Cash
11/1/2023
Georgetown
Cash
3. Switch to Design view and modify field properties.
a. Apply the Long Date format to the SaleDate field. Note: If your version of
Access does not include the day of the week in the long date format, use
the long date format anyway.
b. Switch back to Datasheet view and adjust the width of the SaleDate field so
the entire long date is visible. Save the table when prompted.
c. Close the table. Save the table when prompted.
4. Create a new table to capture the details for each sale.
a. The first field should be an AutoNumber field named: SaleDetailID
b. The second field should be a lookup field named: SaleID The lookup
field should be limited to values in the SaleID field of
the PopcornSales table. Include only the SaleID in the lookup field. Enable
data integrity by restricting deletions.
c. Save the table as: SaleDetails
d. Add a third field to the far right of the table. Name this field: Item This is
another lookup field. Include all the fields from the Items table. Sort the
lookup items by values in the ItemName field. Hide the primary key field.
Enable data integrity by restricting deletions.
e. Add a Number field to the right of the Item field. Name the
field: Quantity
f. Set the default value for the Quantity field to: 1
g. Add three records to the table with the following data. (Hint: Remember,
the first field in the table, SaleDetailID, is an AutoNumber field, so there is
nothing to enter for each record.)
SaleID
Item
Quantity
1
Chocolate
3
1
Truffle
2
2
Old Bay
3
h. Close the table.
5. Use the Form Wizard to create a new form for inputting sales data.
a. Include all the fields from the PopcornSales table.
b. Include the Item and Quantity fields from the SaleDetails table.
c. View the form data by records in the PopcornSales table with related
records in the SaleDetails table displayed in a subform.
d. The subform should be displayed as a Datasheet.
e. Name the main form: PopcornSalesFrm and name the
subform: SaleDetailsSubform (Hint: Be sure to remove the
space between SaleDetails and Subform in the subform name suggested
by Access.)
f. Open the form in Form view to review your work.
g. Navigate to the record in the main form for SaleID 3 and enter sale details
in the subform as follows:
Item: Chocolate, Quantity: 2
Item: Old Bay, Quantity: 3
h. Close the form.
6. Open the Items table and modify the table fields as follows:
a. Change the data type for the Price field to: Currency
b. Set the Default Value property for the Price field to: 9
c. Autofit the width of the ItemName field.
d. Save the changes and close the Items table.
7. Create a Single Record form using the Items table as the record source. Save the
form with the name: SingleRecordFrm and then close the form.
8. Begin a new blank form in Layout view.
a. From the Locations table, add the LocationID,
LocationDescription, and Comments fields in that order, at the left side
of the form.
b. Widen the labels so LocationDescription is completely visible.
c. Save the form with the name: LocationsFrm and then close the
form.
9. Open the SalesArchive table.
a. Delete the Total field.
b. Find the record with the ID 500 and delete it. (Hint: It is the last record in
the table.)
c. Find and replace each ItemID value OLDB with OLDB005.
d. Rename the TotalSal field to: SaleTotal
e. Save and close the table.
10. Use the Relationships window to create a relationship between
the Items and SalesArchive tables.
a. Show the SalesArchive table in the Relationships window.
b. Create a one-to-many relationship between the ItemID field in
the Items table and the ItemID field in the SalesArchive table. You may
rearrange the tables in the Relationships window if you want.
c. Enforce referential integrity so a record cannot be deleted or altered in
the Items table if it would cause a conflict with the data in
the SalesArchive table.
d. Close the Relationships window and save the changes.
11. Create a query to display sales of Old Bay flavored popcorn from
the SalesArchive table.
a. Include the following fields in this order: the SaleDate, Quantity,
and SaleTotalfields from the SalesArchive table and the ItemName field
from the Items table.
b. Add the criteria Old Bay to the ItemName field.Run the query to check
your work. (Hint: There should be 32 records in the query results.)
c. Save the query as OldBayQry and then close the query.
12. Create a query to display sales greater than $55.00 from the SalesArchive table.
a. Include the following fields in this order: the SaleDate from
the SalesArchive table, ItemName field from the Items table,
and SaleTotal from the SalesArchive table.
b. Add criteria to the SaleTotal field to return only sales greater than $55.00.
Run the query to check your work. (Hint: There should be 10 records in the
query results.)
c. Specify the sort order in the query, so the results always display the records
with the highest values in the SaleTotal field first.
d. Save the query as HighDollarSalesQry and close it.
13. Use the Report Wizard to create a report based on the NewFlavorsQry query.
a. Include the fields from the NewFlavorsQry query in this
order: ItemName, SaleDate, and Quantity.
b. View the data by the Items table.
c. Do not add any additional grouping.
d. Sort the detail records by sale date.
e. Use the Stepped layout in Portrait orientation.
f. Name the report NewFlavorRpt and then view the report to check
your work.
14. Save and close any open database objects and then close the database.
15. Upload and save your project file.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed with your coursework?
Get quality coursework help from an expert!