XP Chapter 4 Collecting Data for Well-Designed Forms “Making good decisions is a crucial skill at every level.” —Peter Drucker Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 XP Chapter Introduction • • Automate process of acquiring data needed for dayto-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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 2 XP Tools Covered in this Chapter • • • • • • AutoForm AutoFormat (predefined and custom) Calculated field Combo box (for locating a record) Command button Control Wizards Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 3 Tools Covered in this ChapterXP (continued) • • • • • • Find tool Form properties Form Wizard Subform control Tab control Tab order Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 4 Level 1 Objectives: XP 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 5 XP 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 6 XP Designing Forms for Efficient Data Entry (continued) • 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 7 XP Comparing a Well-Designed Form with a Poorly Designed Form Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 8 XP Verifying Database Integrity • Accurate data Major goal in every database • Errors can be prevented by the design of database All IDs created with AutoNumber field type Prevent manual entry of these fields • Examine each table in design view Verify that field properties in place • Test Format masks Relational integrity Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 9 XP Examining and Entering Data • Enter data into records using Table’s datasheet view Using 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 10 XP Creating Simple Forms for Data Entry and Editing • Access provides many ways to create forms Options for creating simple forms • AutoForm wizard • Form wizard Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 11 Creating a Form Using an AutoForm Wizard • XP Click new object AutoForm button On table datasheet toolbar • Access creates form by Arranging all fields in table in columnar format Displays first record in form window Converts subdatasheet into subform • Move from one field to next Press Tab key Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 12 Creating a Form Using an XP AutoForm Wizard (continued) • Move from one record to another Click buttons on navigation bar at bottom of main form Data in subform changes Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 13 XP Using the Form Wizard • • • Specify field order Specify particular layout and style for form New form dialog box Click Forms button on Objects bar Click New button on Database Window toolbar Click Form Wizard • Select table Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 14 XP Starting the Form Wizard Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 15 Select the Fields you Want toXP Show on the Form Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 16 Developing a Consistent UserXP 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 17 XP frmCustomer in Design View Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 18 XP Examining a Form in Design View • Record source Underlying object Provides fields and data in form • Bound form Displays data from fields in record source Type for data-entry forms • Unbound forms Do not have record source Designed to help users navigate through database Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 19 XP Examining a Form in Design View (continued) • Link form to record source Using design elements called controls • Work with form in design view Manipulate controls • Place control on form Use toolbox toolbar • Detail section for main body of form Displays records and contains all bound controls Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 20 XP Controls for Forms Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 21 XP Toolbox Tools for Forms Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 22 XP Toolbox Tools for Forms Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 23 Important Buttons on the FormXP Design Toolbar Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 24 XP Blank Form in Design View with Typical Sections Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 25 XP Examining a Form in Design View • 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 contain • Instructions for using form • Buttons to perform actions Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 26 XP Examining a Form in Design View (continued) • 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 Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 27 XP Customizing the Style of a Form • AutoFormat Predefined design to apply to form Includes • Styles • Options such as font, color, and border Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 28 XP Adding a Title to a Form • Open or enlarge form header or form footer Drags bottom of section bar to increase height of section Use label to create header/footer • Adjust label properties Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 29 Saving a Custom Style as an XP AutoFormat • Open AutoFormat dialog box Click customize button to create AutoFormat Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 30 XP Level 1 Summary • Forms provide easy to use interface Normally used in production databases to access/edit data • Create using AutoForm wizard Form wizard • Use AutoFormats to customize form appearance Create custom AutoFormats Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 31