SlideShare a Scribd company logo
1 of 63
Succeeding in Business with Microsoft Access 2013
Collecting Data with
Well-Designed Forms
Chapter 4
Succeeding in Business with Microsoft Access 2013
Chapter Introduction
• Automate process of acquiring data needed
for day-to-day operation of business
• Forms can show only one record at time
– Provide many advantages to database users
– Flexibility for users and designers
• Consist of one or many pages
• Design all forms in a database to create
consistent look and feel
– Include buttons that facilitate navigation
2
Succeeding in Business with Microsoft Access 2013
Tools Covered in this Chapter
• Themes
• Calculated field
• Combo box (for locating a record)
• Command button
• Control Wizards
3
Succeeding in Business with Microsoft Access 2013
Tools Covered in this Chapter (cont’d.)
• Find tool
• Form properties
• Form Wizard
• Subform control
• Tab control
• Tab order
4
Succeeding in Business with Microsoft Access 2013
Level 1 Objectives:
Developing Simple Forms to Facilitate Data Entry
• Design forms for efficient data entry
• Create simple forms for data entry and editing
• Develop a consistent user interface
5
Succeeding in Business with Microsoft Access 2013
Designing Forms for Efficient Data Entry
• Electronic form
– Object used to enter, update, and print records
– Present records in format that makes data easy to
enter and retrieve
• Guidelines for designing electronic forms:
– Provide meaningful title
– Organize fields logically
– Use appealing form layout
– Include familiar field labels
6
Succeeding in Business with Microsoft Access 2013
Designing Forms for Efficient Data Entry
(cont’d.)
• Guidelines for designing electronic forms:
– Be consistent with terminology and abbreviations
– Allow for convenient cursor movement
– Prevent and correct errors
– Include explanatory messages for fields
• Before creating form in Access
– Sketch on paper
– Verify database integrity
– Test tables and relationships
– Examine and enter sample data
7
Succeeding in Business with Microsoft Access 2013 8
Figure 4.1: Comparing a well-designed form with a poorly designed form
Succeeding in Business with Microsoft Access 2013
Verifying Database Integrity
• Accurate data
– Major goal in every database
• Errors can be prevented by the design of database
– Prevent manual entry of fields
• Examine each table in Design view
– Verify that field properties in place
• Test
– Formats and input masks
– Validation rules
– Relational integrity
9
Succeeding in Business with Microsoft Access 2013
Examining and Entering Data
• Enter data into records using:
– Table’s Datasheet view
– Form that includes fields from one or more tables
• Most Access database applications use forms
for data entry
– After database released for regular business use
10
Succeeding in Business with Microsoft Access 2013
Creating Simple Forms for Data Entry and
Editing
• Access provides many ways to create forms
– Options for creating simple forms
• Form tools
• Form wizard
11
Succeeding in Business with Microsoft Access 2013
Creating a Form Using the Form Tool
• Click the CREATE tab, then click the Form tool
in the Forms group
• Access creates form by:
– Arranging all fields in table in columnar format
– Displays first record in form window
– Converts subdatasheet into subform
12
Succeeding in Business with Microsoft Access 2013
Creating a Form Using the Form Tool (cont’d.)
• Move from one field to next
– Switch to Form view and press the Tab key
• Move from one record to another
– Click buttons on record navigation bar at bottom
of main form
– Data in subform changes
13
Succeeding in Business with Microsoft Access 2013
Using the Form Wizard
• Specify field order
• Specify particular layout and style for form
• Click the Forms Wizard button in the Forms
group on the CREATE tab
14
Succeeding in Business with Microsoft Access 2013 15
Figure 4.6: Starting the Form Wizard
Succeeding in Business with Microsoft Access 2013 16
Figure 4.7: Select the fields you want to show on the form
Succeeding in Business with Microsoft Access 2013 17
Figure 4.8: Form for the tblDoctor table
Succeeding in Business with Microsoft Access 2013
Using the Form Wizard (cont’d.)
• Record source
– Underlying object
– Provides fields and data in form
• Bound form
– Displays data from fields in its record source
• Unbound form
– Do not have record source
– Usually used to help users navigate
18
Succeeding in Business with Microsoft Access 2013
Using the Form Wizard (cont’d.)
• Using design elements called controls
– Small objects such as text boxes, buttons, and
labels
19
Succeeding in Business with Microsoft Access 2013 20
Succeeding in Business with Microsoft Access 2013 21
Succeeding in Business with Microsoft Access 2013 22
Figure 4.10: Form for the tblCustomer in Design view
Succeeding in Business with Microsoft Access 2013
Using the Form Wizard (cont’d.)
• Form header
– Displays information that always appears on form
even when records change
– Top of screen
• Form footer
– Displays information that always appears on form
– Bottom of screen
– Often contains
• Instructions for using form
• Buttons to perform actions
23
Succeeding in Business with Microsoft Access 2013
Using the Form Wizard (cont’d.)
• Page headers and footers
– Display information at top or bottom of every page
– Appear only when printing form by default
– Headers
• Useful for column headings dates, and page numbers
– Footers
• Display summaries and page numbers
• Grid
– Form background
24
Succeeding in Business with Microsoft Access 2013
Examining a Form in Design view
• Design view Detail section
– Fields have two parts
• Label
• Text box
– Move and sizing handles
• Adjust to where data fits
25
Succeeding in Business with Microsoft Access 2013
Developing a Consistent User Interface
• Forms in database share same design
– Present consistent user interface
– Users learn how to use forms once
• Apply what they learn to all forms in database
• Access Themes are simple way to make forms
and reports appear more professional
– Borders, background colors, shading and graphic
effects applied to entire form
26
Succeeding in Business with Microsoft Access 2013
Developing a Consistent User Interface (cont’d.)
• Click Design Tab on the Ribbon and click
Themes button in Themes group
– Scroll down gallery and select theme
• Click in Form header, click Format tab, Shape
Fill
– Change colors using the Shape Fill menu of colors
27
Succeeding in Business with Microsoft Access 2013
Changing Label Properties in a Form
• Select label box to change
– Right click label and click Form Properties
• Property sheet opens
– Select property to modify the appearance and
behavior of the label
28
Succeeding in Business with Microsoft Access 2013
Adding an Unbound Graphic
• Resize form header in Design view so image
will fit
• To add a logo
– Click the FORM DESIGN TOOLS DESIGN tab
– Click Logo button in Header/Footer group
• Insert desired graphic
• Use size mode property Clip option for best fill of image
29
Succeeding in Business with Microsoft Access 2013
Level 1 Summary
• Forms provide easy to use interface
– Normally used in production databases to
access/edit data
• Create using
– Form tool
– Form Wizard
30
Succeeding in Business with Microsoft Access 2013
Level 2 Objectives: Creating Forms
that Use Fields From More than One Table
• Create multitable forms
• Improve navigation on forms
• Add controls to forms
31
Succeeding in Business with Microsoft Access 2013
Adding a Subform to an Existing Form
• Subform
– Form embedded in another form
• Primary form
– Called main form
– Underlying table usually has one-to-many
relationship with table underlying subform
• Main form and subform linked
– Subform displays only records that related to
current record in main form
32
Succeeding in Business with Microsoft Access 2013
Adding a Subform to an Existing Form (cont’d.)
• Use Wizard to create subform
– Access automatically synchronizes main form with
subform
– Only if tables containing fields for form related
– Subform must also have field with same name or
compatible data type and field size as primary key
in table underlying main form
• Main form can have more than one subform
• Subform can also contain another subform
33
Succeeding in Business with Microsoft Access 2013
Modifying the Form Layout
• Can move and resize controls, including
subform
– Click right edge of form to get two headed arrow
• Drag to make form wider
– To widen the subform
• Click border
– Sizing handles appear
– Point to the middle-right handle
– Pointer changes to a double-sided arrow
– Then drag the subform border
34
Succeeding in Business with Microsoft Access 2013
Modifying the Form Layout (cont’d.)
• Select other controls to move text box and
attached label together
• Labels
– Move with text field or independently
– Edit text
– Resize
35
Succeeding in Business with Microsoft Access 2013
Creating a Form from a Query
• User view
– Custom form that shows only fields particular user
wants
– Might or might not be used for data entry
– In some cases fields may be locked so all user can
only view them and not edit them
• Use Form Wizard to create form based on
query
– Access asks which table to view results by
36
Succeeding in Business with Microsoft Access 2013
Creating a Form from a Query (cont’d.)
• Prevent editing
– Set form properties to No
• Allow edits
• Allow deletions
• Allow additions
• Data entry
37
Succeeding in Business with Microsoft Access 2013
Adding Command Buttons to a Form
• Command buttons
– Users click to perform common tasks
• Access provides collection of command
buttons
– Associated with actions
– Can contain
• Text
• Standard icons available from Access
• Graphics
38
Succeeding in Business with Microsoft Access 2013
Adding Command Buttons to a Form (cont’d.)
• Create in Design view
– Using Command Button Wizard
– By adding button to form then setting properties
• Be consistent when creating command
buttons
– Location on form
– Order
39
Succeeding in Business with Microsoft Access 2013 40
Table 4.5: Command button options
Succeeding in Business with Microsoft Access 2013
Exploring Other Form Properties
• Open property sheet for form
– Right-click the item you wish to modify the
properties for
– Click Properties on shortcut menu
• Common reason to use form properties
– Decide to base form on different record source
from one used to create form
41
Succeeding in Business with Microsoft Access 2013 42
Succeeding in Business with Microsoft Access 2013 43
Succeeding in Business with Microsoft Access 2013
Controlling Form Printing
• Control form’s vertical spacing on printed page
• Include date and page number
– Using Access-provided functions
44
Succeeding in Business with Microsoft Access 2013
Printing a Selected Record in Form view
• Print Preview button
– Preview form
– See how it will print
45
Succeeding in Business with Microsoft Access 2013
Level 2 Summary
• Add subform to existing form
• Modify form layout
• Create form from query
• Create command buttons
• Modify form properties
• Print form
– Use print preview
46
Succeeding in Business with Microsoft Access 2013
Level 3 Objectives: Creating Forms
for Completing Daily Business Tasks
• Improve usability of forms
• Place calculations on forms
• Develop advanced forms
47
Succeeding in Business with Microsoft Access 2013
Improving the Usability of Forms
• Use form controls
– Speed up process of locating particular record
• Include calculated control in form
• Create multiple-page forms
• Create forms with multiple subforms
• Learn about tab order
• Control focus in form to skip unbound controls
48
Succeeding in Business with Microsoft Access 2013
Locating a Record Quickly
• Find tool
– Open Find and Replace dialog box
– Click field to search for particular value
– Enter value to match
– Access searches for records that contain same
value in selected field
• Combo box
– Displays list of values
– Users select one from list
49
Succeeding in Business with Microsoft Access 2013 50
Table 4.9: Ways to locate a record
Succeeding in Business with Microsoft Access 2013
Locating a Record Quickly (cont’d.)
• Use Control Wizard to add combo box to form
• Combo Box Wizard
– Provides three options for listing values in combo
box
• Look up values in table or query
• Let users type value
• Let users select value that Access matches to find
record
51
Succeeding in Business with Microsoft Access 2013
Adding a Calculation to a Form
• Include calculated field on form
– Create field in query
– Use query as record source for form
– Or add an unbound control that contains
calculation directly to form
• Create unbound control
– Text box button
– Enter calculation
52
Succeeding in Business with Microsoft Access 2013
Streamlining the Main Pharmacy Processes in a
Complex Form
• Process analysis
– List steps and substeps employees perform
– Indicate which database objects used to complete
each task
53
Succeeding in Business with Microsoft Access 2013
Step 1: Registering New Customers or
Confirming Customer Identity
• Usually completed by technician
• Uses Command Button Wizard to add two
command buttons to open associated forms
54
Succeeding in Business with Microsoft Access 2013
Step 2: Filling and Refilling Prescriptions
• Started by technicians
• Pharmacist must check for
– Drug interactions
– Confirm instructions and dosages
55
Succeeding in Business with Microsoft Access 2013
Creating Forms with Many Subforms
• Arrange fields in logical groups
– According to how employees most often use them
• Click Subform/Subreport button
– Start Subform Wizard
• Prevent data errors
– Change properties of subform so it does not allow
edits, deletions, or additions
56
Succeeding in Business with Microsoft Access 2013 57
Figure 4.41: Completed frmPrimaryActivity form with three subforms
Succeeding in Business with Microsoft Access 2013
Creating Multipage Forms Using Page Break
• Too many fields to fit on one screen
– Continue a form onto an additional page (or
pages) by placing a page break
– Page Up or Page Down key moves you from page
to page
58
Succeeding in Business with Microsoft Access 2013
Creating Forms Using Tab Controls for Multiple
Subforms
• Tab control
– Add multiple subforms to form in compact way
– Each subform has tab at top
• Layered one on top of other
– Add first tab by clicking Tab Control button
– Add additional tabs by
• Right-clicking blank spot in tab control
• Clicking insert page
59
Succeeding in Business with Microsoft Access 2013 60
Figure 4.42: Form with tab controls
Succeeding in Business with Microsoft Access 2013
Changing Tab Order and Tab Stop
• Form created with form tool or Form Wizard
– Places fields in order they appear in table design
• After fields rearranged for more logical data entry
– Form needs modification to arrange order of
movement through fields
– Called tab order
• Test each form by
– Opening form
– Pressing Tab key to see if cursor stops in each field in
appropriate order
61
Succeeding in Business with Microsoft Access 2013
Level 3 Summary
• Locate records using
– Find tool
– Combo box
• Add calculations to forms
• Create forms with multiple subforms
• Set tab order
– After modifying field order on form
62
Succeeding in Business with Microsoft Access 2013
Chapter Summary
• Forms provide easy to use interface
• Create using Wizards
• Use subforms to display related data
• Create form from query
• Create command buttons
• Create forms that display large amount of data
– Multiple subforms
– Multiple pages
63

More Related Content

What's hot

Ch06 Access
Ch06 AccessCh06 Access
Ch06 AccessD
 
Ch02 Access
Ch02 AccessCh02 Access
Ch02 AccessD
 
Ch04 Access
Ch04 AccessCh04 Access
Ch04 AccessD
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03chazaabdul
 
Ch03 Access
Ch03 AccessCh03 Access
Ch03 AccessD
 
Ch07 Access
Ch07 AccessCh07 Access
Ch07 AccessD
 
Intro Access
Intro AccessIntro Access
Intro AccessD
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit Djarana00
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit Cjarana00
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training frameworkVijay Perepa
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit Bjarana00
 
Ragic Database design 101
Ragic Database design 101Ragic Database design 101
Ragic Database design 101Ragic
 
PowerPoint Unit A
PowerPoint Unit APowerPoint Unit A
PowerPoint Unit Ajarana00
 
Excel 2013 Unit C
Excel 2013 Unit CExcel 2013 Unit C
Excel 2013 Unit Cjarana00
 
Word 2013 Unit A
Word 2013 Unit AWord 2013 Unit A
Word 2013 Unit Ajarana00
 
Salesforce admin course in_chandigarh_course_content
Salesforce admin course in_chandigarh_course_contentSalesforce admin course in_chandigarh_course_content
Salesforce admin course in_chandigarh_course_contentSwayam Tewari
 
PowerPoint Unit B
PowerPoint Unit BPowerPoint Unit B
PowerPoint Unit Bjarana00
 
AX 2012: All About Lookups!
AX 2012: All About Lookups!AX 2012: All About Lookups!
AX 2012: All About Lookups!MAnasKhan
 

What's hot (20)

Ch06 Access
Ch06 AccessCh06 Access
Ch06 Access
 
Ch02 Access
Ch02 AccessCh02 Access
Ch02 Access
 
Ch04 Access
Ch04 AccessCh04 Access
Ch04 Access
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03
 
Ch03 Access
Ch03 AccessCh03 Access
Ch03 Access
 
Ch07 Access
Ch07 AccessCh07 Access
Ch07 Access
 
Intro Access
Intro AccessIntro Access
Intro Access
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit D
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit C
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit B
 
Ragic Database design 101
Ragic Database design 101Ragic Database design 101
Ragic Database design 101
 
PowerPoint Unit A
PowerPoint Unit APowerPoint Unit A
PowerPoint Unit A
 
Excel 2013 Unit C
Excel 2013 Unit CExcel 2013 Unit C
Excel 2013 Unit C
 
Word 2013 Unit A
Word 2013 Unit AWord 2013 Unit A
Word 2013 Unit A
 
Salesforce admin course in_chandigarh_course_content
Salesforce admin course in_chandigarh_course_contentSalesforce admin course in_chandigarh_course_content
Salesforce admin course in_chandigarh_course_content
 
Ax Presentation
Ax PresentationAx Presentation
Ax Presentation
 
PowerPoint Unit B
PowerPoint Unit BPowerPoint Unit B
PowerPoint Unit B
 
AX 2012: All About Lookups!
AX 2012: All About Lookups!AX 2012: All About Lookups!
AX 2012: All About Lookups!
 

Viewers also liked

Viewers also liked (12)

SIM - Mc leod ch04
SIM - Mc leod ch04SIM - Mc leod ch04
SIM - Mc leod ch04
 
Network address translation
Network address translationNetwork address translation
Network address translation
 
Network address translation pdf
Network address translation pdfNetwork address translation pdf
Network address translation pdf
 
Nat
Nat Nat
Nat
 
Nat presentation
Nat presentationNat presentation
Nat presentation
 
What is Network Address Translation (NAT)
What is Network Address Translation (NAT)What is Network Address Translation (NAT)
What is Network Address Translation (NAT)
 
Chapter 1 MIS
Chapter 1 MISChapter 1 MIS
Chapter 1 MIS
 
Chapter 4 MIS
Chapter 4 MISChapter 4 MIS
Chapter 4 MIS
 
Laudon mis12 ppt01
Laudon mis12 ppt01Laudon mis12 ppt01
Laudon mis12 ppt01
 
LinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-PresentedLinkedIn SlideShare: Knowledge, Well-Presented
LinkedIn SlideShare: Knowledge, Well-Presented
 
State of the Word 2011
State of the Word 2011State of the Word 2011
State of the Word 2011
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to Ch04 cmpt110

5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoFormPyi Soe
 
5 Designing Form
5 Designing Form5 Designing Form
5 Designing FormPyi Soe
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.pptsatgup78
 
Access 2010 Unit C PPT
Access 2010 Unit C PPTAccess 2010 Unit C PPT
Access 2010 Unit C PPTokmomwalking
 
Creating a Great XPages User Interface
Creating a Great XPages User InterfaceCreating a Great XPages User Interface
Creating a Great XPages User InterfaceTeamstudio
 
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Howard Greenberg
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha253253
 
Elevate Insight with Microsoft CRM 2011 Dashboards
Elevate Insight with Microsoft CRM 2011 DashboardsElevate Insight with Microsoft CRM 2011 Dashboards
Elevate Insight with Microsoft CRM 2011 DashboardsWill Slade
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPTokmomwalking
 
Chapter 8 User Interface Design .pptxInformation Technology Project Managemen
Chapter 8 User Interface Design .pptxInformation Technology Project ManagemenChapter 8 User Interface Design .pptxInformation Technology Project Managemen
Chapter 8 User Interface Design .pptxInformation Technology Project ManagemenAxmedMaxamuudYoonis
 
Word 2016 module 4 pp
Word 2016 module 4 ppWord 2016 module 4 pp
Word 2016 module 4 ppdgdotson
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and DesignMay Belleza
 
Datagrinch product experience
Datagrinch product experienceDatagrinch product experience
Datagrinch product experienceSandeep Supal
 
Dynamic DSM Features - Reports & Dashboards
Dynamic DSM Features - Reports & DashboardsDynamic DSM Features - Reports & Dashboards
Dynamic DSM Features - Reports & DashboardsDynamic DSM
 

Similar to Ch04 cmpt110 (20)

5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm
 
5 Designing Form
5 Designing Form5 Designing Form
5 Designing Form
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
Access 06
Access 06Access 06
Access 06
 
Access 2010 Unit C PPT
Access 2010 Unit C PPTAccess 2010 Unit C PPT
Access 2010 Unit C PPT
 
Creating a Great XPages User Interface
Creating a Great XPages User InterfaceCreating a Great XPages User Interface
Creating a Great XPages User Interface
 
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
Creating a Great XPages User Interface, TLCC Teamstudio Webinar - Feb, 2014
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Ms access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal sahaMs access ppt 2017 by Gopal saha
Ms access ppt 2017 by Gopal saha
 
Access4
Access4Access4
Access4
 
Elevate Insight with Microsoft CRM 2011 Dashboards
Elevate Insight with Microsoft CRM 2011 DashboardsElevate Insight with Microsoft CRM 2011 Dashboards
Elevate Insight with Microsoft CRM 2011 Dashboards
 
SAP Adobe forms
SAP Adobe formsSAP Adobe forms
SAP Adobe forms
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPT
 
Chapter 8 User Interface Design .pptxInformation Technology Project Managemen
Chapter 8 User Interface Design .pptxInformation Technology Project ManagemenChapter 8 User Interface Design .pptxInformation Technology Project Managemen
Chapter 8 User Interface Design .pptxInformation Technology Project Managemen
 
4_5787161581716507944.pptx
4_5787161581716507944.pptx4_5787161581716507944.pptx
4_5787161581716507944.pptx
 
Word 2016 module 4 pp
Word 2016 module 4 ppWord 2016 module 4 pp
Word 2016 module 4 pp
 
MS ACCESS
MS ACCESSMS ACCESS
MS ACCESS
 
System Analysis and Design
System Analysis and DesignSystem Analysis and Design
System Analysis and Design
 
Datagrinch product experience
Datagrinch product experienceDatagrinch product experience
Datagrinch product experience
 
Dynamic DSM Features - Reports & Dashboards
Dynamic DSM Features - Reports & DashboardsDynamic DSM Features - Reports & Dashboards
Dynamic DSM Features - Reports & Dashboards
 

Ch04 cmpt110

  • 1. Succeeding in Business with Microsoft Access 2013 Collecting Data with Well-Designed Forms Chapter 4
  • 2. Succeeding in Business with Microsoft Access 2013 Chapter Introduction • Automate process of acquiring data needed for day-to-day operation of business • Forms can show only one record at time – Provide many advantages to database users – Flexibility for users and designers • Consist of one or many pages • Design all forms in a database to create consistent look and feel – Include buttons that facilitate navigation 2
  • 3. Succeeding in Business with Microsoft Access 2013 Tools Covered in this Chapter • Themes • Calculated field • Combo box (for locating a record) • Command button • Control Wizards 3
  • 4. Succeeding in Business with Microsoft Access 2013 Tools Covered in this Chapter (cont’d.) • Find tool • Form properties • Form Wizard • Subform control • Tab control • Tab order 4
  • 5. Succeeding in Business with Microsoft Access 2013 Level 1 Objectives: Developing Simple Forms to Facilitate Data Entry • Design forms for efficient data entry • Create simple forms for data entry and editing • Develop a consistent user interface 5
  • 6. Succeeding in Business with Microsoft Access 2013 Designing Forms for Efficient Data Entry • Electronic form – Object used to enter, update, and print records – Present records in format that makes data easy to enter and retrieve • Guidelines for designing electronic forms: – Provide meaningful title – Organize fields logically – Use appealing form layout – Include familiar field labels 6
  • 7. Succeeding in Business with Microsoft Access 2013 Designing Forms for Efficient Data Entry (cont’d.) • Guidelines for designing electronic forms: – Be consistent with terminology and abbreviations – Allow for convenient cursor movement – Prevent and correct errors – Include explanatory messages for fields • Before creating form in Access – Sketch on paper – Verify database integrity – Test tables and relationships – Examine and enter sample data 7
  • 8. Succeeding in Business with Microsoft Access 2013 8 Figure 4.1: Comparing a well-designed form with a poorly designed form
  • 9. Succeeding in Business with Microsoft Access 2013 Verifying Database Integrity • Accurate data – Major goal in every database • Errors can be prevented by the design of database – Prevent manual entry of fields • Examine each table in Design view – Verify that field properties in place • Test – Formats and input masks – Validation rules – Relational integrity 9
  • 10. Succeeding in Business with Microsoft Access 2013 Examining and Entering Data • Enter data into records using: – Table’s Datasheet view – Form that includes fields from one or more tables • Most Access database applications use forms for data entry – After database released for regular business use 10
  • 11. Succeeding in Business with Microsoft Access 2013 Creating Simple Forms for Data Entry and Editing • Access provides many ways to create forms – Options for creating simple forms • Form tools • Form wizard 11
  • 12. Succeeding in Business with Microsoft Access 2013 Creating a Form Using the Form Tool • Click the CREATE tab, then click the Form tool in the Forms group • Access creates form by: – Arranging all fields in table in columnar format – Displays first record in form window – Converts subdatasheet into subform 12
  • 13. Succeeding in Business with Microsoft Access 2013 Creating a Form Using the Form Tool (cont’d.) • Move from one field to next – Switch to Form view and press the Tab key • Move from one record to another – Click buttons on record navigation bar at bottom of main form – Data in subform changes 13
  • 14. Succeeding in Business with Microsoft Access 2013 Using the Form Wizard • Specify field order • Specify particular layout and style for form • Click the Forms Wizard button in the Forms group on the CREATE tab 14
  • 15. Succeeding in Business with Microsoft Access 2013 15 Figure 4.6: Starting the Form Wizard
  • 16. Succeeding in Business with Microsoft Access 2013 16 Figure 4.7: Select the fields you want to show on the form
  • 17. Succeeding in Business with Microsoft Access 2013 17 Figure 4.8: Form for the tblDoctor table
  • 18. Succeeding in Business with Microsoft Access 2013 Using the Form Wizard (cont’d.) • Record source – Underlying object – Provides fields and data in form • Bound form – Displays data from fields in its record source • Unbound form – Do not have record source – Usually used to help users navigate 18
  • 19. Succeeding in Business with Microsoft Access 2013 Using the Form Wizard (cont’d.) • Using design elements called controls – Small objects such as text boxes, buttons, and labels 19
  • 20. Succeeding in Business with Microsoft Access 2013 20
  • 21. Succeeding in Business with Microsoft Access 2013 21
  • 22. Succeeding in Business with Microsoft Access 2013 22 Figure 4.10: Form for the tblCustomer in Design view
  • 23. Succeeding in Business with Microsoft Access 2013 Using the Form Wizard (cont’d.) • Form header – Displays information that always appears on form even when records change – Top of screen • Form footer – Displays information that always appears on form – Bottom of screen – Often contains • Instructions for using form • Buttons to perform actions 23
  • 24. Succeeding in Business with Microsoft Access 2013 Using the Form Wizard (cont’d.) • Page headers and footers – Display information at top or bottom of every page – Appear only when printing form by default – Headers • Useful for column headings dates, and page numbers – Footers • Display summaries and page numbers • Grid – Form background 24
  • 25. Succeeding in Business with Microsoft Access 2013 Examining a Form in Design view • Design view Detail section – Fields have two parts • Label • Text box – Move and sizing handles • Adjust to where data fits 25
  • 26. Succeeding in Business with Microsoft Access 2013 Developing a Consistent User Interface • Forms in database share same design – Present consistent user interface – Users learn how to use forms once • Apply what they learn to all forms in database • Access Themes are simple way to make forms and reports appear more professional – Borders, background colors, shading and graphic effects applied to entire form 26
  • 27. Succeeding in Business with Microsoft Access 2013 Developing a Consistent User Interface (cont’d.) • Click Design Tab on the Ribbon and click Themes button in Themes group – Scroll down gallery and select theme • Click in Form header, click Format tab, Shape Fill – Change colors using the Shape Fill menu of colors 27
  • 28. Succeeding in Business with Microsoft Access 2013 Changing Label Properties in a Form • Select label box to change – Right click label and click Form Properties • Property sheet opens – Select property to modify the appearance and behavior of the label 28
  • 29. Succeeding in Business with Microsoft Access 2013 Adding an Unbound Graphic • Resize form header in Design view so image will fit • To add a logo – Click the FORM DESIGN TOOLS DESIGN tab – Click Logo button in Header/Footer group • Insert desired graphic • Use size mode property Clip option for best fill of image 29
  • 30. Succeeding in Business with Microsoft Access 2013 Level 1 Summary • Forms provide easy to use interface – Normally used in production databases to access/edit data • Create using – Form tool – Form Wizard 30
  • 31. Succeeding in Business with Microsoft Access 2013 Level 2 Objectives: Creating Forms that Use Fields From More than One Table • Create multitable forms • Improve navigation on forms • Add controls to forms 31
  • 32. Succeeding in Business with Microsoft Access 2013 Adding a Subform to an Existing Form • Subform – Form embedded in another form • Primary form – Called main form – Underlying table usually has one-to-many relationship with table underlying subform • Main form and subform linked – Subform displays only records that related to current record in main form 32
  • 33. Succeeding in Business with Microsoft Access 2013 Adding a Subform to an Existing Form (cont’d.) • Use Wizard to create subform – Access automatically synchronizes main form with subform – Only if tables containing fields for form related – Subform must also have field with same name or compatible data type and field size as primary key in table underlying main form • Main form can have more than one subform • Subform can also contain another subform 33
  • 34. Succeeding in Business with Microsoft Access 2013 Modifying the Form Layout • Can move and resize controls, including subform – Click right edge of form to get two headed arrow • Drag to make form wider – To widen the subform • Click border – Sizing handles appear – Point to the middle-right handle – Pointer changes to a double-sided arrow – Then drag the subform border 34
  • 35. Succeeding in Business with Microsoft Access 2013 Modifying the Form Layout (cont’d.) • Select other controls to move text box and attached label together • Labels – Move with text field or independently – Edit text – Resize 35
  • 36. Succeeding in Business with Microsoft Access 2013 Creating a Form from a Query • User view – Custom form that shows only fields particular user wants – Might or might not be used for data entry – In some cases fields may be locked so all user can only view them and not edit them • Use Form Wizard to create form based on query – Access asks which table to view results by 36
  • 37. Succeeding in Business with Microsoft Access 2013 Creating a Form from a Query (cont’d.) • Prevent editing – Set form properties to No • Allow edits • Allow deletions • Allow additions • Data entry 37
  • 38. Succeeding in Business with Microsoft Access 2013 Adding Command Buttons to a Form • Command buttons – Users click to perform common tasks • Access provides collection of command buttons – Associated with actions – Can contain • Text • Standard icons available from Access • Graphics 38
  • 39. Succeeding in Business with Microsoft Access 2013 Adding Command Buttons to a Form (cont’d.) • Create in Design view – Using Command Button Wizard – By adding button to form then setting properties • Be consistent when creating command buttons – Location on form – Order 39
  • 40. Succeeding in Business with Microsoft Access 2013 40 Table 4.5: Command button options
  • 41. Succeeding in Business with Microsoft Access 2013 Exploring Other Form Properties • Open property sheet for form – Right-click the item you wish to modify the properties for – Click Properties on shortcut menu • Common reason to use form properties – Decide to base form on different record source from one used to create form 41
  • 42. Succeeding in Business with Microsoft Access 2013 42
  • 43. Succeeding in Business with Microsoft Access 2013 43
  • 44. Succeeding in Business with Microsoft Access 2013 Controlling Form Printing • Control form’s vertical spacing on printed page • Include date and page number – Using Access-provided functions 44
  • 45. Succeeding in Business with Microsoft Access 2013 Printing a Selected Record in Form view • Print Preview button – Preview form – See how it will print 45
  • 46. Succeeding in Business with Microsoft Access 2013 Level 2 Summary • Add subform to existing form • Modify form layout • Create form from query • Create command buttons • Modify form properties • Print form – Use print preview 46
  • 47. Succeeding in Business with Microsoft Access 2013 Level 3 Objectives: Creating Forms for Completing Daily Business Tasks • Improve usability of forms • Place calculations on forms • Develop advanced forms 47
  • 48. Succeeding in Business with Microsoft Access 2013 Improving the Usability of Forms • Use form controls – Speed up process of locating particular record • Include calculated control in form • Create multiple-page forms • Create forms with multiple subforms • Learn about tab order • Control focus in form to skip unbound controls 48
  • 49. Succeeding in Business with Microsoft Access 2013 Locating a Record Quickly • Find tool – Open Find and Replace dialog box – Click field to search for particular value – Enter value to match – Access searches for records that contain same value in selected field • Combo box – Displays list of values – Users select one from list 49
  • 50. Succeeding in Business with Microsoft Access 2013 50 Table 4.9: Ways to locate a record
  • 51. Succeeding in Business with Microsoft Access 2013 Locating a Record Quickly (cont’d.) • Use Control Wizard to add combo box to form • Combo Box Wizard – Provides three options for listing values in combo box • Look up values in table or query • Let users type value • Let users select value that Access matches to find record 51
  • 52. Succeeding in Business with Microsoft Access 2013 Adding a Calculation to a Form • Include calculated field on form – Create field in query – Use query as record source for form – Or add an unbound control that contains calculation directly to form • Create unbound control – Text box button – Enter calculation 52
  • 53. Succeeding in Business with Microsoft Access 2013 Streamlining the Main Pharmacy Processes in a Complex Form • Process analysis – List steps and substeps employees perform – Indicate which database objects used to complete each task 53
  • 54. Succeeding in Business with Microsoft Access 2013 Step 1: Registering New Customers or Confirming Customer Identity • Usually completed by technician • Uses Command Button Wizard to add two command buttons to open associated forms 54
  • 55. Succeeding in Business with Microsoft Access 2013 Step 2: Filling and Refilling Prescriptions • Started by technicians • Pharmacist must check for – Drug interactions – Confirm instructions and dosages 55
  • 56. Succeeding in Business with Microsoft Access 2013 Creating Forms with Many Subforms • Arrange fields in logical groups – According to how employees most often use them • Click Subform/Subreport button – Start Subform Wizard • Prevent data errors – Change properties of subform so it does not allow edits, deletions, or additions 56
  • 57. Succeeding in Business with Microsoft Access 2013 57 Figure 4.41: Completed frmPrimaryActivity form with three subforms
  • 58. Succeeding in Business with Microsoft Access 2013 Creating Multipage Forms Using Page Break • Too many fields to fit on one screen – Continue a form onto an additional page (or pages) by placing a page break – Page Up or Page Down key moves you from page to page 58
  • 59. Succeeding in Business with Microsoft Access 2013 Creating Forms Using Tab Controls for Multiple Subforms • Tab control – Add multiple subforms to form in compact way – Each subform has tab at top • Layered one on top of other – Add first tab by clicking Tab Control button – Add additional tabs by • Right-clicking blank spot in tab control • Clicking insert page 59
  • 60. Succeeding in Business with Microsoft Access 2013 60 Figure 4.42: Form with tab controls
  • 61. Succeeding in Business with Microsoft Access 2013 Changing Tab Order and Tab Stop • Form created with form tool or Form Wizard – Places fields in order they appear in table design • After fields rearranged for more logical data entry – Form needs modification to arrange order of movement through fields – Called tab order • Test each form by – Opening form – Pressing Tab key to see if cursor stops in each field in appropriate order 61
  • 62. Succeeding in Business with Microsoft Access 2013 Level 3 Summary • Locate records using – Find tool – Combo box • Add calculations to forms • Create forms with multiple subforms • Set tab order – After modifying field order on form 62
  • 63. Succeeding in Business with Microsoft Access 2013 Chapter Summary • Forms provide easy to use interface • Create using Wizards • Use subforms to display related data • Create form from query • Create command buttons • Create forms that display large amount of data – Multiple subforms – Multiple pages 63