Microsoft Access 2010

47
Microsoft Access 2010 Chapter 5 Multitable Forms

description

Microsoft Access 2010. Chapter 5 Multitable Forms. Objectives. Add Yes/No, Date/Time, Memo, OLE Object , and Attachment fields Use the Input Mask Wizard Update fields and enter data Change row and column size Create a form with a subform in Design view - PowerPoint PPT Presentation

Transcript of Microsoft Access 2010

Page 1: Microsoft Access 2010

MicrosoftAccess 2010

Chapter 5

Multitable Forms

Page 2: Microsoft Access 2010

Multitable Forms 2

• Add Yes/No, Date/Time, Memo, OLE Object, and Attachment fields

• Use the Input Mask Wizard• Update fields and enter data• Change row and column size• Create a form with a subform in Design view• Modify a subform and form design

Objectives

Page 3: Microsoft Access 2010

Multitable Forms 3

• Enhance the form title• Change tab stops and tab order• Use the form to view data and attachments• View object dependencies• Use Date/Time, Memo, and Yes/No fields in a

query• Create a form with a datasheet

Objectives

Page 4: Microsoft Access 2010

Multitable Forms 4

Project – Multitable Forms

Page 5: Microsoft Access 2010

Multitable Forms 5

• When new fields are needed, determine the purpose of those fields to see if they need special data types

• When a form is required, determine whether the form requires data from more than one table

• If the form requires data from more than one table, determine the relationship between the tables

• If the form requires data from more than one table, determine on which of the tables the form is to be based

• Determine the fields from each table that need to be on the form

General Project Guidelines

Page 6: Microsoft Access 2010

Multitable Forms 6

• Open the table in Design view• Click the first open field to select the position for

the first additional field• Type the desired field name, press the TAB key,

and then select the desired data type• Click the Save button on the Quick Access Toolbar

to save the changes

Adding Fields with New Data Types

to a Table

Page 7: Microsoft Access 2010

Multitable Forms 7

Adding Fields with New Data Types

to a Table

Page 8: Microsoft Access 2010

Multitable Forms 8

• After adding the new field, click the Input Mask property box• Click the Build button to use a wizard to enter the input

mask• If necessary, click the Yes button to save the table• Select the desired input mask in the Input Mask Wizard

dialog box• Click the Next button two times• If necessary, determine how you want to store the data, and

then click the Next button• Click the Finish button

Using the Input Mask Wizard

Page 9: Microsoft Access 2010

Multitable Forms 9

Using the Input Mask Wizard

Page 10: Microsoft Access 2010

Multitable Forms 10

• Click the check box in the Yes/No field to place a check mark in the box

Entering Data in Yes/No Fields

Page 11: Microsoft Access 2010

Multitable Forms 11

• Drag the right edge of the field to resize to the right to increase the column size

• Drag the lower edge of the record selector to resize to the desired location

Changing the Row and Column Size

Page 12: Microsoft Access 2010

Multitable Forms 12

• Right-click the OLE object field to produce a shortcut menu

• Click Insert Object on the shortcut menu to display the Microsoft Access dialog box

• Click the ‘Create from File’ option button, and then click the Browse button to display the Browse dialog box

• Navigate to the location of the file you wish to insert• Click the object to insert, and then click the OK button

Entering Data in OLE Object Fields

Page 13: Microsoft Access 2010

Multitable Forms 13

Entering Data in OLE Object Fields

Page 14: Microsoft Access 2010

Multitable Forms 14

• Right-click the attachment field, and then click Manage Attachments on the shortcut menu

• Click the Add button to add an attachment• Navigate to the location containing the file(s) to attach• Click the file to attach, and then click the Open button• Repeat the previous three steps to attach additional

files• Click the OK button to close the Attachments dialog box

Entering Data in Attachment Fields

Page 15: Microsoft Access 2010

Multitable Forms 15

Entering Data in Attachment Fields

Page 16: Microsoft Access 2010

Multitable Forms 16

• Click Create on the Ribbon to display the Create tab

• Click the Form Design button to create a new form in Design View

• If a field list does not appear, click the Add Existing Fields button (Form Design Tools Design tab | Tools group) to display a field list

Creating a Form in Design View

Page 17: Microsoft Access 2010

Multitable Forms 17

Creating a Form in Design View

Page 18: Microsoft Access 2010

Multitable Forms 18

• Drag the field in the field list to the desired location on the form

Adding a Control for a Field to the Form Design

Page 19: Microsoft Access 2010

Multitable Forms 19

• Click the first control to align• Hold the SHIFT key down and click the remaining

controls to align• Click the Align button (Form Design Tools Arrange

tab | Sizing & Ordering group) to display the Align menu

• Click the desired alignment option

Aligning Controls

Page 20: Microsoft Access 2010

Multitable Forms 20

Aligning Controls

Page 21: Microsoft Access 2010

Multitable Forms 21

• Select the controls on which to modify the vertical spacing

• Click the Size/Space button (Form Design Tools Arrange tab | Sizing & Ordering group) to display the Size/Space menu

• Click the desired spacing option to specify the spacing

Adjusting Vertical Spacing

Page 22: Microsoft Access 2010

Multitable Forms 22

Adjusting Vertical Spacing

Page 23: Microsoft Access 2010

Multitable Forms 23

• Drag the field list title bar to move the field list

Moving the Field List

Page 24: Microsoft Access 2010

Multitable Forms 24

• Right-click the form to produce a shortcut menu• Point to the Fill/Back Color command arrow on

the shortcut menu to display a color palette• Click the desired color

Using a Shortcut Menu to Change the Fill/Back Color

Page 25: Microsoft Access 2010

Multitable Forms 25

• Click the Title button (Form Design Tools Design tab | Header/Footer group) to add a title to the form

Adding a Title

Page 26: Microsoft Access 2010

Multitable Forms 26

• Click the More button (Form Design Tools Design tab | Controls group) to display a gallery of available tools

• Be sure the Use Control Wizards button is selected, click the Subform/ Subreport tool on the Form Design Tools Design tab, and move the mouse pointer to and click the position where you want to position the subform

• Ensure the ‘Use existing Tables and Queries’ option button is selected

Placing a Subform

Page 27: Microsoft Access 2010

Multitable Forms 27

• Click the Next button• Click the Tables/Queries box arrow, and then click the

table that contains the fields for the subform• Add the desired fields to the subform• Click the Next button to move to the next SubForm

Wizard dialog box• Be sure the ‘Choose from a list’ option button is selected• Click the Next button• Type the desired name of the subform• Click the Finish button to place the subform

Placing a Subform

Page 28: Microsoft Access 2010

Multitable Forms 28

Placing a Subform

Page 29: Microsoft Access 2010

Multitable Forms 29

• Click the View button (Home tab | Views group) to view the form in Form view

Viewing the Form

Page 30: Microsoft Access 2010

Multitable Forms 30

• Open the form with the subform in Design view• Click the boundary of the subform to select it• Make the necessary modifications

Modifying a Subform

Page 31: Microsoft Access 2010

Multitable Forms 31

• In Design view, click the label two times to produce an insertion point

• Type the new label text• Click outside the label to deselect it

Changing a Label

Page 32: Microsoft Access 2010

Multitable Forms 32

• Click the label(s) to change• Click the Font Color arrow (Form Design Tools Format tab | Font

group) to display a color palette• Click the desired color to change the font color for the label(s)• Click the Property Sheet button (Form Design Tools Design tab |

Tools group) to produce the property sheet for the selected labels. If your property sheet still appears on the left side of the screen, drag it back to the right. Make sure the All tab is selected

• Click the Border Style property box to display the Border Style property box arrow, and then click the arrow to display a menu of border styles

Changing Special Effects and Colors

Page 33: Microsoft Access 2010

Multitable Forms 33

• Click the desired border style• Click the Border Width property box to display the

Border Width property box arrow, and then click the arrow to display a menu of border widths

• Click the desired border width• Click the Special Effect property box to display the

Special Effect property box arrow, and then click the arrow to display a menu of special effects

• Click the desired special effect

Changing Special Effects and Colors

Page 34: Microsoft Access 2010

Multitable Forms 34

Changing Special Effects and Colors

Page 35: Microsoft Access 2010

Multitable Forms 35

• Display the form in Design view• Resize the Form Header section by dragging down the

lower boundary of the section to the desired location• Click the control containing the form title to select the

control• Drag the lower-right sizing handle to resize the control

to the desired size• Click the Property Sheet button (Form Design Tools

Design tab | Tools group) to display the control’s property sheet

Modifying the Appearance of a Form Title

Page 36: Microsoft Access 2010

Multitable Forms 36

• Click the Font Size property box, click the Font Size property box arrow, and then click the desired font size

• In a similar fashion, change the Text Align property and the Font Weight property

• Close the property sheet by clicking the Property Sheet button (Form Design Tools Design tab | Tools group)

Modifying the Appearance of a Form Title

Page 37: Microsoft Access 2010

Multitable Forms 37

Modifying the Appearance of a Form Title

Page 38: Microsoft Access 2010

Multitable Forms 38

• Select the controls for which you want to omit from the tab stop sequence

• Click the Property Sheet button (Form Design Tools Design tab | Tools group) to display the property sheet

• Make sure the All tab (Property Sheet) is selected, click the down scroll arrow until the Tab Stop property appears, click the Tab Stop property, click the Tab Stop property box arrow, and then click No

• Close the property sheet

Changing a Tab Stop

Page 39: Microsoft Access 2010

Multitable Forms 39

Changing a Tab Stop

Page 40: Microsoft Access 2010

Multitable Forms 40

Changing the Tab Order

Page 41: Microsoft Access 2010

Multitable Forms 41

• Open the Navigation Pane and click the desired table• Click the Object Dependencies button (Database

Tools tab | Relationships group) to display the Object Dependencies pane

• If necessary, click the ‘Objects that depend on me’ option button to select it

• Close the Object Dependencies pane by clicking the Object Dependencies button (Database Tools tab | Relationships group) a second time

Viewing Object Dependencies

Page 42: Microsoft Access 2010

Multitable Forms 42

Viewing Object Dependencies

Page 43: Microsoft Access 2010

Multitable Forms 43

Using the Date/Time, Memo, and Yes/No Fields in a Query

Page 44: Microsoft Access 2010

Multitable Forms 44

Using the Date/Time, Memo, and Yes/No Fields in a Query

Page 45: Microsoft Access 2010

Multitable Forms 45

• Add Yes/No, Date/Time, Memo, OLE Object, and Attachment fields

• Use the Input Mask Wizard• Update fields and enter data• Change row and column size• Create a form with a subform in Design view• Modify a subform and form design

Chapter Summary

Page 46: Microsoft Access 2010

Multitable Forms 46

• Enhance the form title• Change tab stops and tab order• Use the form to view data and attachments• View object dependencies• Use Date/Time, Memo, and Yes/No fields in a

query• Create a form with a datasheet

Chapter Summary

Page 47: Microsoft Access 2010

Chapter 5 Complete

MicrosoftAccess 2010