Download Forms and Subforms

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Forms and Subforms
5.02 Understand database queries,
forms, and reports used in business.
United Grocers Database
Four Tables
5.02 Understand database queries, forms, and reports used in business.
2
Diagram of Query
Relationships
5.02 Understand queries, forms, and reports.
3
Query Logic
The mission of the query
is to find out what
products were ordered
by each customer.
View the chart to follow
the process used by the
query to accomplish its
mission.
5.02 Understand queries, forms, and reports.
4
Required Information
• Orders Table
– Store ID
– Order No.
• Purchase Orders Table
– Order No.
– Product ID.
– Quantity
• Grocery Products Table
– Product ID
– Product name
– Unit Price
5.02 Understand queries, forms, and reports.
5
Connection to Main Form
• In order for the subform to communicate
with the main form, a relationship
between common fields must be
established.
• Include the Store ID field from the
Customers Table in the query
5.02 Understand queries, forms, and reports.
6
Query Results
5.02 Understand queries, forms, and reports.
7
Customers Form
5.02 Understand queries, forms, and reports.
8
Subform in Design View
5.02 Understand queries, forms, and reports.
9
Property Sheet
5.02 Understand queries, forms, and reports.
10
Form View of
Orders for Store #410432
5.02 Understand queries, forms, and reports.
11
Form View of
Order for Store #410474
5.02 Understand queries, forms, and reports.
12