tutorial 6 using form tools and creating custom forms
DESCRIPTION
Tutorial 6 Using Form Tools and Creating Custom Forms. Objectives. Change a lookup field to a Text field View and print database documentation Create datasheet, multiple items, and split forms Modify a form and anchor form controls in Layout view - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/1.jpg)
®Microsoft Access 2010
Tutorial 6
Using Form Tools and Creating Custom Forms
![Page 2: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/2.jpg)
XPXPXPObjectives• Change a lookup field to a Text field• View and print database documentation• Create datasheet, multiple items, and split forms• Modify a form and anchor form controls in Layout
view• Plan, design, and create a custom form in Design view
and in Layout view• Select, move, align, resize, delete, and rename
controls in a form
New Perspectives on Microsoft Office Access 2010 2
![Page 3: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/3.jpg)
XPXPXPObjectives• Add a combo box to a form• Add form headers and footers to a form• Add a combo box to a form to find records• Add a subform to a form• Add calculated controls to a form and a
subform• Change the tab order in a form• Improve the appearance of a form
New Perspectives on Microsoft Office Access 2010 3
![Page 4: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/4.jpg)
XPXPXPAnchoring Controls
New Perspectives on Microsoft Office Access 2010 4
![Page 5: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/5.jpg)
XPXPXPDesigning Forms• To create a custom form, you can modify an
existing form in Layout view or in Design view, or you can design and create a form from scratch in Layout view or in Design view
• A combo box is a control that provides the features of a text box and a list box; it lets you choose a value from the list or type an entry
New Perspectives on Microsoft Office Access 2010 5
![Page 6: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/6.jpg)
XPXPXPDesigning Forms
New Perspectives on Microsoft Office Access 2010 6
![Page 7: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/7.jpg)
XPXPXPUsing the Documenter• Start Access and open the database you want to
document• In the Analyze group on the Database Tools tab, click
the Database Documenter button• Select the object(s) you want to document• If necessary, click the Options button to select specific
documentation options for the selected object(s), and then click the OK button
• Click the OK button, print the documentation, and then close the Object Definition window
New Perspectives on Microsoft Office Access 2010 7
![Page 8: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/8.jpg)
XPXPXPUsing the Documenter
New Perspectives on Microsoft Office Access 2010 8
![Page 9: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/9.jpg)
XPXPXPCreating Forms Using Form Tools• The Datasheet tool creates a form in a
datasheet format that contains all the fields in the source table or query
New Perspectives on Microsoft Office Access 2010 9
![Page 10: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/10.jpg)
XPXPXPCreating Forms Using Form Tools• The Multiple Items tool creates a customizable
form that displays multiple records from a source table or query in a datasheet format
New Perspectives on Microsoft Office Access 2010 10
![Page 11: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/11.jpg)
XPXPXPCreating Forms Using Form Tools• The Split Form tool creates a customizable
form that displays the data in a form in both Form view and Datasheet view at the same time
New Perspectives on Microsoft Office Access 2010 11
![Page 12: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/12.jpg)
XPXPXPForm in Design View
New Perspectives on Microsoft Office Access 2010 12
![Page 13: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/13.jpg)
XPXPXPPlanning and Designing a Custom Form
New Perspectives on Microsoft Office Access 2010 13
![Page 14: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/14.jpg)
XPXPXPCreating a Form in Design View• Click the Create tab on the Ribbon• In the Forms group, click the Blank Form button• Click the Design View button on the status bar• Make sure the Field List pane is open, and then add
the required fields to the form• Add other required controls to the form• Modify the size, position, and other properties as
necessary for the fields and other controls in the form• Save the form
New Perspectives on Microsoft Office Access 2010 14
![Page 15: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/15.jpg)
XPXPXPCreating a Form in Design View
New Perspectives on Microsoft Office Access 2010 15
![Page 16: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/16.jpg)
XPXPXPSelecting and Moving Controls• Click the control to select it. To select several controls at once,
press and hold down the Shift key while clicking each control. Handles appear around all selected controls
• To move a single selected control, drag the control’s move handle, which is the handle in the upper-left corner, to its new position
• To move a group of selected controls, point to any selected control until the pointer changes to a move pointer, and then drag the group of selected controls to its new position
• To move selected controls in small increments, press the appropriate arrow key
• To move selected controls to the next nearest grid dot, hold down the Ctrl key and press the appropriate arrow key
New Perspectives on Microsoft Office Access 2010 16
![Page 17: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/17.jpg)
XPXPXPSelecting and Moving Controls
New Perspectives on Microsoft Office Access 2010 17
![Page 18: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/18.jpg)
XPXPXPResizing a Control in Design View• Click the control to select it and display the
sizing handles• Place the pointer over the sizing handle you
want, and then drag the edge of the control until it is the size you want
• To resize selected controls in small increments, hold down the Shift key and press the appropriate arrow key. This technique applies the resizing to the right edge and the bottom edge of the control
New Perspectives on Microsoft Office Access 2010 18
![Page 19: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/19.jpg)
XPXPXPResizing a Control
New Perspectives on Microsoft Office Access 2010 19
![Page 20: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/20.jpg)
XPXPXPAdding a Combo Box to a Form• You use the Combo Box tool in Design view to
add a combo box to a form• A Control Wizard asks a series of questions
and then uses your answers to create a control in a form or report
New Perspectives on Microsoft Office Access 2010 20
![Page 21: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/21.jpg)
XPXPXPChanging a Label’s Caption• Right-click the label to select it and to display the
shortcut menu, and then click Properties to display the property sheet
• If necessary, click the All tab to display the All page in the property sheet
• Edit the existing text in the Caption box; or click the Caption box and press the F2 key to select the current value, and then type a new caption
• In the Tools group on the Design tab, click the Property Sheet button to close the property sheet
New Perspectives on Microsoft Office Access 2010 21
![Page 22: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/22.jpg)
XPXPXPChanging a Label’s Caption
New Perspectives on Microsoft Office Access 2010 22
![Page 23: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/23.jpg)
XPXPXPAdding and Removing Form Header and Form Footer Sections• In Design view, right-click the Detail section selector,
and then click Form Header/Footer on the shortcut menu
or• In Layout view or Design view, click a button in the
Header/Footer group on the Design tab to add a logo, title, or date and time to the form
• To remove a Form Header or Form Footer section, drag its bottom edge up until the section area disappears or set the section’s Visible property to No
New Perspectives on Microsoft Office Access 2010 23
![Page 24: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/24.jpg)
XPXPXPAdding and Removing Form Header and Form Footer Sections
New Perspectives on Microsoft Office Access 2010 24
![Page 25: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/25.jpg)
XPXPXPCustom Form in Form View
New Perspectives on Microsoft Office Access 2010 25
![Page 26: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/26.jpg)
XPXPXPAdding a Combo Box to Find Records• Open the property sheet for the form in Design view,
make sure the record source is a table or query, and then close the property sheet
• In the Controls group on the Design tab, click the More button, click the Combo Box tool, and then click the position in the form where you want to place the control
• Click the third option button (Find a record on my form based on the value I selected in my combo box) in the first Combo Box Wizard dialog box, and then complete the remaining Combo Box Wizard dialog boxes
New Perspectives on Microsoft Office Access 2010 26
![Page 27: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/27.jpg)
XPXPXPAdding a Combo Box to Find Records
New Perspectives on Microsoft Office Access 2010 27
![Page 28: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/28.jpg)
XPXPXPAdding a Subform to a Form• You use the Subform/Subreport tool in Design
view to add a subform to a form• In the Controls group on the Design tab, click
the More button to open the Controls gallery, make sure the Control Wizards tool is selected, and then click the Subform/Subreport tool
New Perspectives on Microsoft Office Access 2010 28
![Page 29: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/29.jpg)
XPXPXPAdding a Subform to a Form
New Perspectives on Microsoft Office Access 2010 29
![Page 30: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/30.jpg)
XPXPXPAdding a Subform to a Form
New Perspectives on Microsoft Office Access 2010 30
![Page 31: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/31.jpg)
XPXPXPDisplaying a Subform’s Calculated Controls in the Main Form• The Count function determines the number of
occurrences of an expression, and its general format as a control in a form or report is =Count(expression)
• The Sum function calculates the total of an expression, and its general format as a control in a form or report is =Sum(expression)
New Perspectives on Microsoft Office Access 2010 31
![Page 32: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/32.jpg)
XPXPXPDisplaying a Subform’s Calculated Controls in the Main Form
New Perspectives on Microsoft Office Access 2010 32
![Page 33: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/33.jpg)
XPXPXPChanging the Tab Order in a Form• Focus refers to the control that is currently
active and awaiting user action; focus also refers to the object and record that is currently active
• The order in which you move from control to control, or change the focus, in a form when you press the Tab key is called the tab order
• Switch to Design view, click the Arrange tab on the Ribbon, and then in the Tools group on the Design tab, click the Tab Order button
New Perspectives on Microsoft Office Access 2010 33
![Page 34: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/34.jpg)
XPXPXPChanging the Tab Order in a Form
New Perspectives on Microsoft Office Access 2010 34
![Page 35: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/35.jpg)
XPXPXPAdding a Line to a Form or Report• Display the form or report in Design view• In the Controls group on the Design tab, click the More button,
and then click the Line tool• Position the pointer where you want the line to begin• Drag the pointer to the position for the end of the line, and
then release the mouse button. If you want to ensure that you draw a straight horizontal or vertical line, hold down the Shift key before and during the drag operation
• To make small adjustments to the line length, select the line, hold down the Shift key, and then press an arrow key. To make small adjustments in the placement of a line, select the line, hold down the Ctrl key, and then press an arrow key
New Perspectives on Microsoft Office Access 2010 35
![Page 36: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/36.jpg)
XPXPXPAdding a Rectangle to a Form or Report• Display the form or report in Design view• In the Controls group on the Design tab, click
the More button, and then click the Rectangle tool
• Click in the form or report to create a default-sized rectangle, or drag a rectangle in the position and size you want
New Perspectives on Microsoft Office Access 2010 36
![Page 37: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/37.jpg)
XPXPXPAdding a Rectangle to a Form or Report
New Perspectives on Microsoft Office Access 2010 37
![Page 38: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/38.jpg)
XPXPXPHelpful Hints• Calculated Controls (summarized)– pp. AC306-AC312– THE GOAL: display summary data in the main form that is based
on data in the subform. • Step-by-Step instructions– USE THE FOOTER SECTION to display the aggregate function like
Sum, Average, Count, etc. Start the aggregate function with an equal sign. For example, =Sum(BoxOfficeGross)
– Give this field a name as described at the bottom of p. AC307. Start with txt. Keep the name simple. Do NOT put blanks in this name; it could cause a major headache later on if you do (continue on the next slide)
New Perspectives on Microsoft Office Access 2010 38
![Page 39: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/39.jpg)
XPXPXPHelpful Hints– Remember the name you assigned to this field (letter for
letter, blank for blank, number for number)– Know the exact name of the subform including any blanks
(spaces)– In the MAIN form in a text box, enter the following: • =[subform name].FORM![txtName]• Translation: start with an equal sign, the name of the
subform in square brackets, a period, the word, FORM, an exclamation point, field name assigned to the aggregate function (e.g. COUNT, SUM) in the subform in square brackets
New Perspectives on Microsoft Office Access 2010 39
![Page 40: Tutorial 6 Using Form Tools and Creating Custom Forms](https://reader035.vdocuments.net/reader035/viewer/2022081421/568164d6550346895dd71240/html5/thumbnails/40.jpg)
XPXPXPAdditional Examples• None
New Perspectives on Microsoft Office Access 2010 40