12
Forms and Subforms 5.02 Understand database queries, forms, and reports used in business.

Forms And Subforms

  • Upload
    wmassie

  • View
    540

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Forms And Subforms

Forms and Subforms

5.02 Understand database queries, forms, and reports used in business.

Page 2: Forms And Subforms

United Grocers Database

Four Tables

25.02 Understand database queries, forms, and reports used in business.

Page 3: Forms And Subforms

Diagram of Query Relationships

35.02 Understand queries, forms, and reports.

Page 4: Forms And Subforms

Query Logic

5.02 Understand queries, forms, and reports. 4

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.

Page 5: Forms And Subforms

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

Page 6: Forms And Subforms

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

Page 7: Forms And Subforms

Query Results

75.02 Understand queries, forms, and reports.

Page 8: Forms And Subforms

Customers Form

5.02 Understand queries, forms, and reports. 8

Page 9: Forms And Subforms

Subform in Design View

5.02 Understand queries, forms, and reports. 9

Page 10: Forms And Subforms

Property Sheet

5.02 Understand queries, forms, and reports. 10

Page 11: Forms And Subforms

Form View of Orders for Store #410432

115.02 Understand queries, forms, and reports.

Page 12: Forms And Subforms

Form View of Order for Store #410474

125.02 Understand queries, forms, and reports.