Microsoft Access GUI Building



Similar documents
Access 2007 Creating Forms Table of Contents

MICROSOFT ACCESS 2007 BOOK 2

Using Microsoft Access

4. The Third Stage In Designing A Database Is When We Analyze Our Tables More Closely And Create A Between Tables

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

Using Microsoft Access

Designing Reports in Access

Microsoft Access Basics

INTRODUCTION TO MICROSOFT ACCESS Tables, Queries, Forms & Reports

MS Access. Microsoft Access is a relational database management system for windows. Using this package, following tasks can be performed.

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

Microsoft Access 2010 handout

Databases: Creating a user interface using Access

Lesson 07: MS ACCESS - Handout. Introduction to database (30 mins)

Using an Access Database

Creating forms in Microsoft Access 2007

Learning Services IT Guide. Access 2013

BID2WIN Workshop. Advanced Report Writing

6. If you want to enter specific formats, click the Format Tab to auto format the information that is entered into the field.


INTRODUCTION TO MICROSOFT ACCESS MINIMAL MANUAL

Introduction to. Microsoft Access Practicals

Creating a Form. A form is something that is created allowing users to enter information in a more visual manner than a datasheet view.

Analyzing Excel Data Using Pivot Tables

Creating and Using Databases with Microsoft Access

MICROSOFT ACCESS STEP BY STEP GUIDE

User Services. Microsoft Access 2003 II. Use the new Microsoft

MS Access Lab 2. Topic: Tables

MICROSOFT ACCESS A. CREATING A DATABASE B. CREATING TABLES IN A DATABASE

Creating tables in Microsoft Access 2007

Microsoft Access 2000

Introduction to Microsoft Access 2007

Microsoft Access Introduction

Spreadsheet - Introduction

Access Tutorial 6: Form Fundamentals

Utilizing Microsoft Access Forms and Reports

Check out our website!

Introduction to Microsoft Access 2003

Instructions for Creating Silly Survey Database

Getting Started with Access 2007

MICROSOFT ACCESS 2003 TUTORIAL

Advanced Excel 10/20/2011 1

Creating Calculated Fields in Access Queries and Reports

Simple Invoicing Desktop Database with MS Access c 2015 by David W. Gerbing School of Business Administration Portland State University

Introduction to Microsoft Access 2013

Planning and Creating a Custom Database

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

Beginning Microsoft Access

Section DB DATABASE - Microsoft Access

Create Mailing Labels from an Electronic File

Objectives. Microsoft Office 2007 Access 2007 Vista Notes. Opening a database, Tables, Querying a Database, and Reports

Basic Excel Handbook

LEGISLATOR DATABASE. September, 2012

2. Building Cross-Tabs in Your Reports Create a Cross-Tab Create a Specified Group Order Filter Cross-Tab by Group Keep Groups Together

Introduction to Microsoft Access XP

Introduction to Microsoft Access 2010

Writer Guide. Chapter 15 Using Forms in Writer

IN THIS PROJECT, YOU LEARN HOW TO

Microsoft Using an Existing Database Amarillo College Revision Date: July 30, 2008

Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP

Working together with Word, Excel and PowerPoint 2013

Creating a Database in Access

Chapter 15 Using Forms in Writer

Styles, Tables of Contents, and Tables of Authorities in Microsoft Word 2010

MICROSOFT OFFICE ACCESS NEW FEATURES

How to Edit an . Here are some of the things you can do to customize your

Adobe Acrobat: Creating Interactive Forms

Access II 2007 Workshop

Create Mailing Labels Using Excel Data (Mail Merge)

Getting Started With Microsoft Access

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

Consider the possible problems with storing the following data in a spreadsheet:

A Basic introduction to Microsoft Access

Giving users forms instead of tables lets them enter and manipulate data while protecting the tables structure (field properties, etc.).

Creating an Access Database. To start an Access Database, you should first go into Access and then select file, new.

Excel 2003 Tutorial I

Use Find & Replace Commands under Home tab to search and replace data.

Microsoft Access Glossary of Terms

3 What s New in Excel 2007

STATEMENT OF TRANSACTION REPORT ANALYSIS USING EXCEL

- Suresh Khanal. Microsoft Excel Short Questions and Answers 1

Moving Data Between Access and Excel

Microsoft Access Creating Filters and Tables

Microsoft Access 2007 Module 1

Crystal Reports Payroll Exercise

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009

Word 2007: Basics Learning Guide

Step One. Step Two. Step Three USING EXPORTED DATA IN MICROSOFT ACCESS (LAST REVISED: 12/10/2013)

Microsoft Office Access 2010: Intermediate. Course Overview Course Introduction. Course Length: 1 Day. Course Overview

GUIDE FOR SORTING RX HISTORY REPORTS IN MICROSOFT EXCEL

Crystal Reports. Overview. Contents. Columnar Drill-Down Report

Introduction to Microsoft Excel 2010

Add a custom a color scheme

Advanced Database Concepts Using Microsoft Access

Tutorial 3 Maintaining and Querying a Database

Creating a Calendar in CorelDRAW

Transcription:

Microsoft Access GUI Building Forms Reports 1 Microsoft Access provides the tools for developing graphical user interfaces that facilitate the use of database applications. An Access GUI consists of a set of Forms. Forms are nice front ends for accessing the data that is stored in database tables or that is generated by queries. Page 1

A GUI Is A Set of Forms Forms Used for Entering data to tables Displaying data from tables or queries in a nicer way Each form is usually bound to a table or query every screenful in the form displays the contents of one record in that table or query 2 Click the Forms tab of the main Access window Double-click Form Employees. Every screen in the form displays data about one record from the Employees table. Users can move between records by using the arrow buttons at bottom of form. Double-click Form Orders. Every screen in this form displays data about one record from the Orders table, together with all its associated Order Detail records (this is an example of a form that displays information about two tables, that are connected together through a one-to-many relationship) Page 2

Forms contain Controls Text boxes Labels Pictures Buttons This screenshot is from the Microsoft Access software program. 3 For example, in form Employees : - Text boxes are used to display most fields. Each text box has an associated label - Combo boxes are used to display the field Reports To. Combo boxes restrict users to selecting values contained in their respective drop-down list - Object Frames are used to display a person s photo, which is stored in the database as a bitmap object, imported from another file Also, in form Orders : - Combo boxes are used to display fields Bill To and Salesperson - An Option Group control is used to display field Ship Via - A Subform is used to display the Order Detail records that match the currently displayed Order Page 3

Controls Forms contain controls Text labels Text boxes List boxes Combo boxes Option groups Buttons Objects created by other applications - Pictures - Word documents - Spreadsheets Decorative lines and boxes 4 Forms are usually associated with tables or queries. This association is established when the form is created. Likewise, individual controls are typically bound to individual fields of the table or query that is associated with the form. Therefore, a screenful of a form displays the contents of a record of the associated table/query whereas individual bound controls display the values of individual fields within that record. In addition to bound controls, Access allows the creation of controls, which display combinations of values of other controls in the form. For those controls, users need to provide a formula that specifies how the value needs to be computed. Page 4

Every Control has a set of Properties Properties determine where the control gets its data from how it is displayed Usually properties are automatically set by wizards users only need to occasionally fine-tune them 5 All this information is encoded in a set of properties that come with forms and controls. Properties determine where a form/control gets its data from, whether the form/control can be used for editing data or for displaying data only as well as several details which determine how the form/control is displayed. Form/control properties are automatically set by Wizard programs provided by Access in order to facilitate the creation of forms. Users only need to edit them occasionally, in order to fine-tune the appearance and behavior of the forms they create. Page 5

Creating Forms Easy way: use an Access Wizard Difficult way: manually add controls 6 Access provides a set of Wizards that facilitate the creation of new forms. To create a simple form that displays records from a table do the following: Click the Forms tab of the main database window. Then click the New button. In the dialog box that appears, select Form Wizard and also specify the table/query with which the new form will be associated (for example: Employees ). The Wizard then allows users to select which fields of the selected table/query will actually appear on the form. It also requests the general layout of the form (in most cases Columnar is what you will want). Following that, it asks for the desired form background pattern and the name under which the new form will be stored. Finally, it creates the form and opens it for data display/editing. The Wizard makes an effort to layout the form in a nice way. In most cases, users will want to make minor adjustments, such as reorganizing some of the controls, making them wider, moving them to different columns, etc. To make changes to a form s design, select View, then Design View. Page 6

Editing a form s design Select Design View Modify controls move them, resize them, delete them Modify properties right-click on a control to get to its property list Add new controls make Toolbox visible by selecting it from the View menu drag and drop new controls from the Toolbox set the properties of the new controls 7 In Design View, the structure of the form in terms of its controls and their properties can be manipulated (Open Form Employees as an example). Select any control and then resize it, or move it around to any part of the form. Selected controls can be deleted by pressing CTRL-X The property list of a control can be accessed by doing a right-mouse-click on a selected control and then selecting Properties from the menu that appears. Property lists are conveniently organized into categories: Format -- includes properties that affect how the control is displayed Data -- includes properties that affect where the control gets its data from (notice that some controls get their data from locally defined queries, example Reports To ) Event -- includes properties that specify what happens where various events involving the control (like clicking the mouse on top of it, modifying its data, etc.) occur The properties of a FORM can be accessed by right-clicking on an area that lies outside of the boundaries of the form ( gray area). The most important form properties specify where a form gets its contents from (which table or query), whether it is used for editing or display only, whether it can be resized, etc. New controls can be added to a form by dragging and dropping them from the Toolbox. Newly created controls then need to be sized and moved to their final position in the form. Their properties also need to be set. In most cases, the only property that matters in the Control Source, which specifies the field to which the new control is bound, or a formula referencing the values of other controls. Page 7

Forms/Subforms Used to display two tables that have a one-to- many relationship Example: Orders and Order Details Each page of the form shows one record from the first table all records from the second table related to above record Example: For each order,show all corresponding ordered products (order details) 8 Page 8

How to embed subforms Create the main form, bound to Categories Create a Products Subform, bound to Products Set the Default View of Products Subform to Datasheet Drag and drop a subform control into the Categories form Using the control wizard, connect the subform control to the Products Subform form 9 Page 9

Reports Specify the structure of printed reports Similar structure to forms Every report is bound to a table or query Reports have controls, where every control specifies how a specific field of a record in the table/query will appear Access provides wizards for easy creation of new reports Users typically only need to fine-tune them 10 Page 10

Report Examples Category Sales for 1995 New report, select Report Wizard Base on query Category Sales for 1995 Select both fields, no grouping, sort by Category Name Tabular Layout, Corporate Style Store as Category Sales for 1995 Switch to Design View, add a text box in Report Footer to show Total Sales 11 Page 11

Report Examples Employee Sales by Country New report, select Report Wizard Base on Employee Sales by Country query Select all fields Group by Country, then Last Name Order by Shipped Date Click Summary Options and check Saleamount Sum Select Stepped Layout, Corporate Style Preview Report 12 Page 12

Report Examples Examine a more complex report: Alphabetical list of Products Products grouped by the first letter of their name No group crosses over a page All those options specified in Sorting and Grouping dialog box (accessible from the View menu) - Group On: Prefix Characters - Group Interval: 1 - Keep Together: Whole Group 13 Page 13

Access GUI Summary 2. A form displays records from a table or query 1. A GUI is a set of forms 3. A form has a set of controls 4. A control displays data from a field or accepts user input 5. A control has a set of properties This screenshot is from the Microsoft Access software program. 6. User interaction with forms/controls generates events 7. Macros can be attached to form/control event properties 14 Page 14