MOS Access Associate (Office 365 and Office 2019)
1 Introduction to Microsoft Access
1-1 Overview of Microsoft Access
1-2 Understanding the Access interface
1-3 Navigating the Ribbon and Backstage view
1-4 Customizing the Quick Access Toolbar
1-5 Using the Tell Me feature
2 Creating and Managing Databases
2-1 Creating a new database
2-2 Opening and closing databases
2-3 Saving and backing up databases
2-4 Converting databases between file formats
2-5 Managing database properties
3 Designing Tables
3-1 Understanding table structure
3-2 Creating tables using table design view
3-3 Defining field properties
3-4 Setting primary keys
3-5 Creating relationships between tables
3-6 Enforcing referential integrity
3-7 Using lookup fields
4 Entering and Managing Data
4-1 Entering data into tables
4-2 Editing and deleting records
4-3 Using data entry forms
4-4 Sorting and filtering data
4-5 Using validation rules and messages
4-6 Importing and exporting data
5 Creating and Customizing Forms
5-1 Understanding forms
5-2 Creating forms using the Form Wizard
5-3 Customizing form layout
5-4 Adding controls to forms
5-5 Setting control properties
5-6 Using form views (Form View, Layout View, Design View)
5-7 Creating subforms
6 Creating and Customizing Reports
6-1 Understanding reports
6-2 Creating reports using the Report Wizard
6-3 Customizing report layout
6-4 Adding controls to reports
6-5 Setting control properties
6-6 Using report views (Report View, Layout View, Design View)
6-7 Grouping and summarizing data in reports
6-8 Printing and exporting reports
7 Querying Data
7-1 Understanding queries
7-2 Creating queries using the Query Wizard
7-3 Using query design view
7-4 Adding fields to queries
7-5 Using criteria and operators
7-6 Sorting and grouping query results
7-7 Creating calculated fields
7-8 Using aggregate functions
7-9 Creating and using parameter queries
7-10 Creating and using crosstab queries
8 Macros and Automation
8-1 Understanding macros
8-2 Creating and editing macros
8-3 Using macro actions
8-4 Assigning macros to events
8-5 Debugging macros
8-6 Understanding VBA (Visual Basic for Applications)
8-7 Writing simple VBA procedures
9 Securing and Sharing Databases
9-1 Setting database passwords
9-2 Encrypting databases
9-3 Managing user-level security
9-4 Sharing databases with others
9-5 Using SharePoint and OneDrive for data storage
9-6 Collaborating with others in real-time
10 Maintaining and Optimizing Databases
10-1 Compact and repair databases
10-2 Analyzing and optimizing database performance
10-3 Using the Database Documenter
10-4 Managing database objects
10-5 Backing up and restoring databases
10-6 Migrating databases to newer versions of Access
Creating Subforms in Microsoft Access

Creating Subforms in Microsoft Access

Subforms in Microsoft Access are essential for displaying related data from different tables within a single form. Understanding how to create and use subforms is crucial for managing complex data relationships and enhancing user experience.

Key Concepts

1. Subforms

Subforms are forms embedded within another form. They display related data from a different table, allowing users to view and manage related records within the context of the main form.

2. Master-Detail Relationship

A master-detail relationship is a type of relationship between two tables where one table (the master) contains the primary data, and the other table (the detail) contains related data. Subforms are often used to represent this relationship, with the main form displaying the master record and the subform displaying the related detail records.

3. Linking Fields

Linking fields are the fields in the master and detail tables that establish the relationship between them. When creating a subform, you must specify the linking fields to ensure that the subform displays the correct related records for each master record.

4. Subform Controls

Subform controls are the elements within the main form that contain the subform. These controls allow users to interact with the subform and view related data. Subform controls can be customized to fit the layout and design of the main form.

5. Subform Design

Subform design involves creating and customizing the layout and controls of the subform. This includes selecting fields, arranging controls, and setting properties to ensure that the subform is intuitive and user-friendly.

Detailed Explanation

1. Creating a Subform

To create a subform in Access, follow these steps:

  1. Open your Access database and navigate to the Create tab.
  2. Create or open the main form in Design View.
  3. In the Design tab, click on "Subform/Subreport" to add a subform control to the main form.
  4. In the "Subform Wizard" dialog box, select the table or query that contains the related data for the subform.
  5. Choose the fields you want to include in the subform.
  6. Specify the linking fields that establish the relationship between the main form and the subform.
  7. Customize the subform layout and properties as needed.
  8. Save and close the subform.

2. Master-Detail Relationship

A master-detail relationship is commonly used in scenarios where you need to display related data from different tables. For example, a main form for customers might include a subform that displays the orders placed by each customer. The customer table is the master, and the order table is the detail.

3. Linking Fields

Linking fields are crucial for ensuring that the subform displays the correct related records. For example, if you have a customer table with a "CustomerID" field and an order table with a "CustomerID" field, you would link these fields to establish the relationship between the customer and order records.

4. Subform Controls

Subform controls allow users to interact with the subform and view related data. These controls can be customized to fit the layout and design of the main form. For example, you can resize and reposition the subform control to ensure that it is visually integrated with the main form.

5. Subform Design

Subform design involves creating and customizing the layout and controls of the subform. This includes selecting fields, arranging controls, and setting properties to ensure that the subform is intuitive and user-friendly. For example, you can use a tabular layout for the subform to display related records in a clear and organized manner.

Examples and Analogies

Example: Customer Orders Subform

Imagine you are creating a form to display customer information and their orders. The main form would display fields such as "CustomerID," "FirstName," and "LastName" from the customer table. The subform would display fields such as "OrderID," "OrderDate," and "ProductName" from the order table. The linking field would be "CustomerID," ensuring that the subform displays the correct orders for each customer.

Analogy: Parent-Child Relationship

Think of a subform as a parent-child relationship. Just as a parent has multiple children, a main form can have multiple subforms. Each subform displays related data, similar to how each child has unique characteristics. The linking fields establish the connection between the parent and child, ensuring that the correct related data is displayed.

By mastering the creation and use of subforms in Microsoft Access, you can effectively manage complex data relationships and enhance the usability of your forms.