Notes 10_Advanced Forms
Notes 10_Advanced Forms
KEY TERMS
• Blank Forms
• hierarchical form
• main form
• Multiple Items tool
• Navigation form
• split form
• subform
240
Advanced Forms 241
A a regional manager for Contoso Pharmaceuticals, you are in charge of overseeing the
As
ssales
a reps in your division. The salespeople you supervise call on doctors to promote
C
Contoso medications and to leave samples. You use Access to put the sales information
ttogether and pull data from a variety of sources. In this lesson, you learn how to create
a multi-item form, a split form, and a subform.
SOFTWARE ORIENTATION
Figure 10-1
Application Parts button
and menu
Blank Forms
category on
Application
Parts menu
Figure 10-2
Navigation button and menu
Navigation
menu
Figure 10-3
More Forms button and menu
More
Forms
menu
242 Lesson 10
Ref In Lesson 5, you learned how to use some of the commands in the Forms group to create
several basic forms.
GET READY. Before you begin these steps, be sure to LAUNCH Microsoft Access.
The Contoso file
for this lesson is available 1. OPEN the Contoso database from the data files for this lesson.
on the book companion 2. SAVE the database as Contoso XXX (where XXX is your initials).
website or in WileyPLUS. 3. In the Navigation pane, double-click the Doctors table to open it.
4. On the Create tab, in the Forms group, click the More Forms button. On the menu that
appears, click the Multiple Items button. Access creates the form and displays it in
Layout View, as shown in Figure 10-4.
WileyPLUS Extra! features an
online tutorial of this task.
Figure 10-4
Multiple Items form in
Layout View
Advanced Forms 243
5. Scroll down and to the right to view the multiple records on the form.
6. Click the File tab and click Save.
7. In the Save As dialog box, key Doctors Multiple and click OK.
8. Click the Close button on Doctors Multiple to close the form.
9. Click the Close button on Doctors to close the table.
10. LEAVE the database open.
PAUSE. LEAVE Access open to use in the next exercise.
Ref You learned about using controls to format your forms in Lesson 7.
Form View
Datasheet View
3. Click the Next Record navigation button to display the next record in Form View.
4. In the datasheet part on the bottom, place the insertion point in the Mobile Phone field
for Nancy Buchanan. Notice that the same field is selected in the form part at the top.
5. Change the number for Nancy Buchanan in the Mobile Phone field to 806-555-4489.
6. Click anywhere on the form part above the datasheet and notice that the mobile phone
number has been changed there as well, as shown in Figure 10-6.
Changes made
to the datasheet
will also be
reflected on the
form
Figure 10-6
Editing a split form
7. On the Home tab, in the Views group, click the View button and click Design View.
8. Press F4 to display the Property Sheet.
9. Click Form in the drop-down list at the top of the Property Sheet and click the Format
tab, if necessary, as shown in Figure 10-7.
Advanced Forms 245
Press F4 to
display the
Property Sheet
Figure 10-7
Property Sheet
10. Scroll down to the Split Form Orientation property, click the down arrow, and click
Datasheet on Top, as shown in Figure 10-8.
Datasheet on
Top property
selected
Figure 10-8
Changing a property
Take Note If all text for the properties is not visible, click the left border of the Property Sheet and drag to
widen it.
Figure 10-9
Split form with datasheet
Change the
on top Split Form
Orientation
property to
display the
datasheet
on top
Table 10-1 lists some of the properties related to split forms that you can set on the Property
Sheet to fine-tune your form. To change form properties, switch to Design View, press F4 to
display the Property Sheet, select Form from the drop-down list at the top of the Property Sheet,
and click the Format tab.
Ref You learned how to set properties using the Property Sheet in Lesson 4.
Table 10-1
Properties Related to Split Forms
Creating a Subform
A subform is a convenient tool that allows you to view data from more than one table or query
on the same form. A subform is a form that is inserted into another form. The primary form is
called the main form, and the form within the form is called the subform. A form/subform
combination is sometimes referred to as a hierarchical form, a master/detail form, or a parent/
child form. You can use the Form Wizard to help you create subforms quickly. For best results,
all relationships should be established first. This enables Access to automatically create the links
between subforms and main forms. In this exercise, you create a subform.
When working with a relational database, you often need to view data from more than one table
or query on the same form. For example, you want to see customer data, but you also want to
see information about the customer’s orders at the same time. Subforms are a convenient tool
for doing this.
Subforms are especially effective when you want to show data from tables or queries that have
a one-to-many relationship—the main form shows data from the “one” side of the relationship
and the subform shows the data from the “many” side of the relationship.
Figure 10-10
Form Wizard, screen 1
Figure 10-11
Form Wizard, screen 2
Figure 10-12
Form Wizard, screen 3
10. Click the Next > button. Access has suggested titles for the forms, as shown in
Figure 10-13. Keep the default selection to open the form.
Figure 10-13
Form Wizard, screen 4
11. Click the Finish button to create the forms. The Doctors form appears with the Samples
Given subform, as shown in Figure 10-14.
Advanced Forms 249
Main form
Subform
Figure 10-14
Doctors form with subform
12. In the Navigation pane, double-click the Samples Given subform to open it, as shown
in Figure 10-15.
Figure 10-15
Samples Given subform
13. Scroll down and to the right, if necessary, to see the data contained in the records and
then click the Close button on the Samples Given subform to close the subform.
14. Click the Close button on the Doctors form to close the form.
15. LEAVE the database open.
PAUSE. LEAVE the database open to use in the next exercise.
250 Lesson 10
Figure 10-16
New Blank Form object in
Navigation pane
New
Blank
Form
Figure 10-17
Blank Form in Form View
4. Switch to Layout View and shift-click each label control placeholder titled Field1,
Field2, Field3, and Field4 to select them all. Press the Delete key on the keyboard to
delete the label controls. Also delete the label control placeholder that contains the red
asterisk, which could be used to denote an important field, like a key field.
5. Click the Add Existing Fields button in the Tools group. The Field List pane appears. If
necessary, click the Show all tables link. Your screen should resemble Figure 10-18.
Figure 10-18
Blank Form in Layout View and 6. In the Field List pane, expand the Doctors table.
Field List pane
7. In the Field List pane, click and drag each Last Name, First Name, Specialty, and
Hospital field to the form and to the right placeholder of the original locations of the
Field1, Field2, Field3, and Field4 label controls that you just deleted. You screen should
resemble Figure 10-19.
252 Lesson 10
Fields dragged
to placeholders
on right-side of
previously
deleted labels
Figure 10-19
Form with fields from Field
List pane 8. Resize the label and field controls that you just added until your screen resembles
Figure 10-20.
Figure 10-20
Form with resized label and
field control 9. Click the Form Title label, and delete Form Title. Key Doctors.
10. Switch to Form View and cycle through the records. Click the Save & Close button on
the form to close the form.
1.3.1 11. Rename the form Doctors Blank Form.
12. LEAVE the database open.
How do you use Application
Parts to create Blank Forms? PAUSE. LEAVE the database open to use in the next exercise.
Advanced Forms 253
Take Note You can also add fields from multiple tables using the Field List pane to your Navigation form
in both Design and Layout Views to allow for even greater customization.
Figure 10-21
Navigation form in Layout View
254 Lesson 10
3. Click and drag the Doctors form object from the Navigation pane to the [Add New] tab
near the top of the form. The form tab has been renamed Doctors and all the Doctors
form’s controls appear. A new [Add New] tab appears next to the Doctors tab. Your
screen should resemble Figure 10-22.
Figure 10-22
Navigation form displaying
4. Click and drag the Doctors report object from the Navigation pane to the [Add New]
Doctors form
tab near the top of the form. The form tab has been renamed Doctors Report and all
the Doctors report controls appear. A new [Add New] tab appears next to the Doctors
tab. Your screen should resemble Figure 10-23.
Figure 10-23
Navigation form displaying
Doctors report
Advanced Forms 255
5. Double-click the Doctors tab and key Doctors Form to rename the tab.
6. Switch to Form View and use the form’s tabs to switch between the form and report.
7. Click the File tab and click Save.
3.1.4 8. In the Save As dialog box, key Doctors Navigation Form and click OK.
9. Click the Close button to close the Doctors Navigation Form.
How do you create
Navigation forms? STOP. CLOSE the database.
SKILL SUMMARY
In This Lesson Objective
You Learned How To: Exam Objective Number
Create Advanced Forms
Use Application Parts to
Create Blank Forms Use Blank forms. 1.3.1
Create a Navigation Form Create Navigation forms. 3.1.4
Knowledge Assessment
Multiple Choice
Select the best response for the following statements or questions.
2. When you use the Multiple Items tool, the form that Access creates resembles a
a. Control
b. Datasheet
c. Filter
d. Query
3. A split form shows your data in which views?
a. Form View and Datasheet View
b. Layout View and Design View
c. Form View and Design View
d. Layout View and Datasheet View
4. Which split form property allows you to define whether the datasheet appears above,
below, to the left, or to the right of the form?
a. Split Form Orientation
b. Split Form Datasheet
c. Split Form Splitter Bar
d. Split Form Size
5. Which type of form allows you to view data from more than one table or query on the
same form?
a. Multi-item form
b. Split form
c. Subform
d. Navigation form
6. Which tool would you use to create a subform?
a. Form Design
b. Blank Form
c. Form
d. Form Wizard
7. A form/subform combination is sometimes referred to as a
a. Hierarchical form
b. Master/detail form
c. Parent/child form
d. All of the above
8. Which type of form already has a predefined layout and can automatically contain
command buttons?
a. Multi-item form
b. Split form
c. Subform
d. Application Parts Blank form
9. What type of form can be added to a database to simplify your interaction with objects
preventing the need to use the Navigation pane?
a. Subform
b. Blank form
c. Split form
d. Navigation form
10. Unbound forms can be easily created that display messages to users using
a. Application Parts Blank forms
b. Navigation forms
c. Split forms
d. None of the above
Advanced Forms 257
Competency Assessment
Proficiency Assessment
Mastery Assessment
INTERNET READY users. When finished, click the Access training on Office.com
link in the Resources for all Access 2010 users category. On
Get help learning Access or other Microsoft
the Training courses page, shown in Figure 10-24, you can
Office applications with self-paced training courses and more.
find links to several articles to help you improve your skills,
Using your browser, go to office.microsoft.com and conduct
as well as training courses to help you practice your skills.
a search for Resources for learning Access 2010. Explore
Online resources don’t have to be dull. These training courses
the page that contains several helpful links to Access 2010
also contain audio and slideshows to help you learn visually.
resources arranged in categories for different types of Access
Figure 10-24
Training courses page
Circling Back 2 261
Circling Back 2
Woodgrove Real Estate is growing and adding more listings. Your office has added another real
estate agent and has begun listing commercial properties as well as residential ones. The database
you created has been a great way to keep track of all the listings and other relevant information.
As you learn more about Access, you begin using it for a wider variety of tasks.
Figure 1
Listings report
262 Circling Back 2
17. Click the Close button on the Listings Report to close the report and save the changes
when prompted.
PAUSE. LEAVE the database open to use in the next project.
Figure 2
Query results 12. Click the Close button on the Houses Sold Query to close the query. When prompted
to save, click Yes.
PAUSE. LEAVE the database open for the next project.
Circling Back 2 263
Figure 3
Totals row 4. On the Home tab, in the Records group, click the Totals button to hide the Totals row.
5. On the Home tab, in the Records group, click the Totals button again. The Totals
row reappears.
6. Save and close the table.
PAUSE. LEAVE the database open for the next project.
7. In the How do you want to view your data? box, click by Agents. The Form with
subform(s) radio button should be selected.
8. Click Next >.
9. Click the Tabular radio button to select that as the layout for your subform.
10. Click Next >.
11. Click the Finish button to create the Agents form with the Listings subform. Your form
should look similar to Figure 4.
Figure 4
Subform 12. In the Navigation pane, double-click the Listings subform to open it.
13. Scroll down to see the data contained in the records and then click the Close button
on the Listings subform to close the subform.
14. Click the Close button on the Agents table to close it.
STOP. CLOSE the database.