Developing Forms and Subforms.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Advertisements

Chapter 5 Multitable Forms
1 Chapter 3 Reviewing Forms, Reports, and Data Access Pages.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
Access Tutorial 4 Creating Forms and Reports
Tutorial 6 Using Form Tools and Creating Custom Forms
Access Tutorial 4 Creating Forms and Reports
Pasewark & Pasewark 1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2007: Introductory.
Access Lesson 4 Creating and Modifying Forms
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
Tutorial 6 Using Form Tools and Creating Custom Forms
Advanced Forms Lesson 10.
Microsoft Office 2013 ®® Access Tutorial 4 Creating Forms and Reports.
Using Form Tools and Creating Custom Forms Microsoft Access 2010.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 6 – Designing.
S511 Session 7, IU-SLIS 1 DB Implementation: MS Access Forms.
Microsoft Access 2013 Simplify Data Entry with Forms Chapter 3.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Tutorial 4 Creating Forms and Reports
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Forms Using. 2  Plan a form  Create a form  Move and resize controls  Modify labels  Modify text boxes Objectives.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
Microsoft Access 2002 Illustrated Complete Forms Using.
1 11 Exploring Microsoft Office Access. 2 Methods of Form Creation You can create a form using: Form, Split and Multiple Form Tools Datasheet Tool Form.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Microsoft Access Prepared by the Academic Faculty Members of IT.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
® Microsoft Office 2010 Access Tutorial 4 Creating Forms and Reports.
Lesson 3: Working with Forms. Learning Objectives After studying this lesson, you will be able to: Identify form design elements Create and print forms.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
DB Implementation: MS Access Forms. MS Access Forms: Purpose Data entry, editing, & viewing data in Tables Forms are user-friendlier to end-users than.
1 New Perspectives on Microsoft Access 2016 Module 4: Creating Forms and Reports.
Microsoft Access 2016 Simplify Data Entry with Forms
Microsoft Access 2007 – Level 2
Microsoft Office Access 2010 Lab 2
Building a User Interface with Forms
Exploring Microsoft Office Access
Forms.
Access Creating Forms and Reports
Access Tutorial 4 Creating Forms and Reports
GO! with Microsoft Office 2016
Microsoft Access 2003 Illustrated Complete
Access Tutorial 4 Creating Forms and Reports
Tutorial 4 Creating Forms and Reports
Simplify Data Entry with Forms Chapter 3
DB Implementation: MS Access Forms
Chapter 7 Advanced Form Techniques
Microsoft Office Access 2003
Exploring Microsoft Office Access
Microsoft Office Access 2003
Database Applications – Microsoft Access
Exploring Microsoft Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
DB Implementation: MS Access Forms
Access: Forms Participation Project
Access Tutorial 4 Creating Forms and Reports
Grauer and Barber Series Microsoft Access Chapter Two
Unit J: Creating a Database
Tutorial 4 Creating Forms and Reports
Presentation transcript:

Developing Forms and Subforms

Objectives Understand the form/subform relationship Create subforms using the Form Wizard Create subforms using queries Modify subforms

Objectives Add combo boxes Add option groups Add command buttons Add ActiveX controls

Introduction A form can be designed to present data in any logical screen arrangement. Serves as the primary interface for most database users Forms contain controls such as labels, text boxes, combo boxes, and command buttons to help identify and enter data. A form with a subform allows you to show a record and its relates records from another object (table or query) at the same time

Understanding the Form/Subform Relationship A subform control is actually a form within a form. The primary form is called the main form, and it contains the subform control A subform shows related records that are linked to the single record currently displayed in the main form The relationship between the main form and the subform is often called a parent/child relationship

Understanding the Form/Subform Relationship (cont.) The link between the main form and the subform is established through a linking field common to both Form/Subform planning guidelines. Sketch the layout, identifying which fields belong in the main form and which belong in the subform Determine whether you need to create separate queries upon which the main form and subform will be based

Understanding the Form/Subform Relationship (cont.) Can use the Form Wizard to collect fields from multiple tables A recordset defines the fields and records that will appear on the form The Record Source property is where the recordset of forms are defined Create the form and subform objects based on appropriate intermediary queries

Understanding the Form/Subform Relationship (cont.) Employees Main form with Attendance Subform

Understanding the Form/Subform Relationship (cont.) Courses Main form with Employee Subform

Creating Subforms Using the Form Wizard A form displays the fields of a table or query in an arrangement that you design. Based on five general layouts: Columnar, Tabular, Datasheet, Chart, and PivotTable Columnar is the most popular layout for a form and Datasheet is the most popular layout for a subform

Creating Subforms Using the Form Wizard (cont.) Employee main form Attendance Subform

Creating Subforms Using the Form Wizard (cont.) Attendance Subform is selected object Subform control

Creating Subforms Using the Form Wizard (cont.) Form Wizard layouts

Creating Subforms Using Queries Create a form with a subform separately by basing them on table or query objects, then linking them together in a form/subform relationship. The advantage of this method makes it easy to change the recordset of the form by modifying the underlying query

Creating Subforms Using Queries (cont.) Form Selector button Drag fields here from field list Field list

Creating Subforms Using Queries (cont.) Linking the form and subform. If the form and subform do not appear to correctly linked, look over the subform’s property sheet Check the Link child Fields and Link Master Fields properties on the Data tab carefully These properties tell you which field serves as the link between the main form and the subform

Modifying Subforms In Form View, you can resize, hide, or move subform columns as well as change the font, grid color, or background color. The controls of both the main form and subform can be modified when working in Design View of the main form

Modifying Subforms (cont.) Double-click the right edge of the field name to resize the column

Modifying Subforms (cont.) Default View property options for subforms

Adding Combo Boxes The List box and Combo box controls provide a list of values from which the user can choose an entry. A combo box allows the user to make an entry from the keyboard; therefore, it is a “combination” of the list box and text box controls

Adding Combo Boxes (cont.)

Adding Combo Boxes (cont.) Choosing between a combo box and a list box. The list box and combo box controls are very similar The combo box allows the user to make a unique entry from the keyboard The combo box uses a drop down list to view value choices

Adding Option Groups An option group is a special type of bound control. Often used when a limited number of values are available for a field Place option button controls within the option group to determine the value that is placed in the field When a user click an option button, the numeric value associated with that option button is entered into the field bound to the option group

Adding Option Groups (cont.) The Option Group Wizard helps guide the process of developing an option group The Control Source property of the option group identifies the field it will update The Option Value property of each option button identifies what value will be placed in the field when that option button is clicked

Adding Option Groups (cont.) Option button

Adding Option Groups (cont.) Protecting data. You can design forms to limit access to certain fields by changing the enabled and locked properties of a control The Enabled property specifies whether a control can have the focus in Form View The Locked property specifies whether you can edit data in a control in Form View

Adding Command Buttons A command button is a powerful unbound control used to initiate a common action in Form View. Some common actions include printing the current record, opening another form, and closing the current form Often added to the form header or form footer sections Sections determine where controls appear and print

Adding Command Buttons (cont.) Print Record command button in the Form Header

Adding Command Buttons (cont.) Form Sections

Adding ActiveX Controls An ActiveX control is a control that follows ActiveX standards. ActiveX Standards are programming standards that were developed by Microsoft ActiveX standards allow the sharing of software components and functionality across multiple applications

Adding ActiveX Controls (cont.) Calendar control Spreadsheet control