Top Banner
New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 XP Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms
30

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 Creating Custom Forms.

Jan 19, 2018

Download

Documents

Lesley Hodges

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 3 Plan your custom form first
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

1

XP

Microsoft Office Access 2003

Tutorial 6 – Creating Custom Forms

Page 2: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

2

XPDesign and create a custom form

• You can create a custom form by modifying an existing form or creating a new form. Either way, the custom form is created in the Form Design window.

• You can create a simple form or a much more complex form with multiple pages.

• You place objects on the form, called controls, that will be either bound or unbound controls.

• Bound controls are linked to a particular field in the underlying table. • Unbound controls are not linked to any particular field.

– An example of an unbound control is a label control that is on the form simply to provide some information on the form

Page 3: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

3

XPPlan your custom form first

Page 4: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

4

XPRemoving the Lookup Feature

• Form design guidelines recommend performing all database updates using forms.

• Table or query datasheets should not be used to update forms.

• To remove the lookup feature for a field, enter Design view for that field’s table, select the field, and click the Lookup tab.

• Change the Display Control field property to a Text box.

Page 5: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

5

XPPrinting Relationships using the Documenter

• To create detailed documentation of one or more objects in your database, you can use the Documenter.

• To access the Documenter, click Tools, point to Analyze, and select Documenter on the Analyze submenu.

Page 6: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

6

XPDocumenter dialog box 1

Page 7: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

7

XPDocumenter dialog box 2

Page 8: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

8

XPObject Definition Window

Page 9: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

9

XPAdd, select, move, resize, delete, and rename controls

• You can add and delete controls as you wish. • When you add a bound control to the form, you will see both a text

box and a label. – The text box is where the data will appear when the form is displayed– The label will contain the name of the field

• To move a control, you must first select it: – When a control is selected, sizing handles will be displayed on the control – The handle on the upper-left side of the control is its move handle. Drag

the move handle to the position you want to place the control – Click on any of the remaining sizing handles and drag to the position you

want to resize the control• You can rename the control by changing the control's name property

to the name you wish to assign to it.• Create a new form in the Database window.

Page 10: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

10

XPForm Design View

Page 11: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

11

XPForm and report buttons

Page 12: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

12

XPResizing and moving controls

In order to move or resize a control, you must have that control selected. In the figure below, the EmployerID text box is selected and has just been moved and resized. When you see the sizing handles, the control is selected and can be moved around on the form.

Page 13: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

13

XPAdd Form Headers and Footers

• To create a form header, you must add a form header and form footer section to the form.

• To add these sections to your form, select Form Header/Footer from the View menu. – If you do not want to have one or the other (the header or the

footer section), you can reduce its height to zero, which will eliminate it from the form's display

• Once you have these sections, you can add labels to them to document the form.

• When creating a title on the form, you will often want to change its font size and weight to make it stand out on the form.

Page 14: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

14

XPForm Design view with header and footer sections shown

Page 15: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

15

XPAdding a Label

• You can add a title or other text to a form by using the Label tool on the toolbox.

• After selecting the Label tool, draw the Label in your form design where you would like it to appear in your form.

Page 16: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

16

XPAdding a Label

Page 17: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

17

XPAdd a graphic image to a form

• To enhance the appearance of a form, you may choose to add a picture to the form.

• The image tool on the toolbox will allow you to create a control that contains a graphical image.

• When you draw the image control on the form, you will be prompted to supply a name of a valid graphic image file.

• Whatever size you set for the control will determine the size of the picture on the form.

Page 18: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

18

XPA form with a graphic image inserted

Page 19: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

19

XPUse Control Wizards to create a multi-page form with a subform

• Because Access is a relational database you will often want to create multi-page forms.

• You can insert a page break control or a tab control to accomplish this task.

• The tab control places two tabbed pages, by default, on your form.

• Once the tab control is in place, you can add controls to any of the tabs just as you would to the form.

Page 20: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

20

XPA multi-page form with tab controls

Page 21: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

21

XPA Form tab with controls added

Page 22: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

22

XPChanging Control Types

• To change a control type, you must first be in design view.

• Click the control of which you wish to change the type, and click Format on the menu bar. Point to the Change To submenu item, and select the control you wish to change to in the Change To submenu.

Page 23: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

23

XPAdding Combo Boxes to a Form

• A combo box presents the user with a predefined list of values from which to select an option.

• The Combo Box tool is used to add a combo box to a form.

• The Control Wizard offers help by asking a series of questions when adding a control.

Page 24: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

24

XPAdding Combo Boxes to a Form

Page 25: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

25

XPAdding a Subform to a Form

• You can use the Subform/Subreport tool to add a subform to a form.

• Click the tab on your form for which you wish to add the subform and click the Subform/Subreport tool on the toolbox.

Page 26: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

26

XPAdding a Subform dialog box 1

Page 27: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

27

XPAdding a Subform dialog box 2

Page 28: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

28

XPSubform Added to Form

Page 29: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

29

XPUse Filter By Form

• Filter By Form can be used to specify which records should be displayed in the forms.

• When you click on the Filter By Form button, a blank form is displayed.

• In this blank form, you can enter values that will become the criteria that will determine which records are displayed.

• You can save the filter as a query that can be used to view the information later.

• When the filter has been saved as a query, you can reapply it to a form as desired.

Page 30: XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6  Creating Custom Forms.

New Perspectives onMicrosoft Office Access 2003, Second Edition- Tutorial 6

30

XPFilter By Form example