Chapter 3: Building a Simple Desktop and Web Application Page 1 of 17

Total Page:16

File Type:pdf, Size:1020Kb

Chapter 3: Building a Simple Desktop and Web Application Page 1 of 17 Chapter 3: Building a Simple Desktop and Web Application Page 1 of 17 Chapter 3: Building a Simple Desktop and Web Application Understanding Access’s Approach to Application Design Unlike other members of Microsoft Office XP, Access 2002 requires that you build an application to take advantage of the product’s power as a database development platform. Word 2002 and Excel 2002 let you automate simple repetitive operations by recording Visual Basic for Applications (VBA) macros. Access 2002 supports a set of macro commands for compatibility with previous versions, but Access macros don’t use VBA. Access doesn’t capture your mouse clicks and keystrokes and turn them into a series of macro commands or VBA code. It’s up to you to design and implement the Access applications you need for your database projects. A full-scale Access application involves at least the following three basic Access object types: z Tables that store the data you or others add to the database z Forms for displaying and entering data, controlling the opening and closing of other forms, and printing reports z Reports to print detail information, summary information, or both in tables Most Access applications also use Query objects to filter, sort, and combine your data, and Module objects to store VBA code. Access 2002 forms can (and usually do) contain VBA code in a special type of Module object, called a Class Module. All objects that make up your application are stored in a container called a Database object, which is a single file with an .mdb extension, such as Northwind.mdb. Access is unique in that it can store an entire database application in a single file. Other desktop databases, such as Microsoft Visual FoxPro, require multiple files to store their objects. New Access users often find it difficult to "get a grip" on how to start developing a self-contained database application. Dealing with an unfamiliar set of objects tends to intimidate first-time database developers. Fortunately, Microsoft includes with Access 2002 various wizards that guide you, step by step, through complex tasks. One of the most accomplished of the Access wizards is the Database Wizard that creates a typical Access 2002 "starter" application from a set of prefabricated database templates. In this chapter, you use the Database Wizard to create a relatively simple but useful Contact Manager application. Then you explore the objects generated by the Wizard to gain perspective on the relationship of Access objects and learn how they’re integrated within a typical Access database application. If you’re upgrading from Access 97 to 2002, the following features introduced by Access 2000 are discussed in this chapter: z Subdatasheets, which open when you click a plus sign to the left of the first field in Table Datasheet view. Subdatasheets automatically display records of another table that’s related to the current table. z Visual Basic for Applications code editor, which Access 2002 shares with other Office applications. Access 97 and earlier used its own VBA editing window for code modules. file://J:\Alpha\chapters\JW225.html 11/5/2001 Chapter 3: Building a Simple Desktop and Web Application Page 2 of 17 NOTE This chapter assumes that you’ve already installed Access 2002. If you haven’t, see the "Access 2002 Installation" section of Chapter 1, "Access 2002 for Access 97 and 2000 Users: What’s New." Creating an Access Application from a Template File When you launch Access 2002, the new Office 2002 task pane appears at the right of the main window with the default New File page active. The New File page offers you the following options: z Opening an existing database, such as Northwind.mdb, the Northwind Traders sample database that’s located in \Program Files\Microsoft Office\Office10\Samples. z Opening a new (blank) database. z Creating a copy of a database from an existing Access file. z Using the Database Wizard to generate a new database from one of the 10 database templates included with Access 2002. Template files contain the definitions of Table, Form, and Report objects, plus the VBA code required to automate interaction of these objects. To use the Database Wizard to create a sample application from an Access 2002 template, follow these steps: 1. Choose Programs, Microsoft Access from the Start menu to launch Access 2002 with the New File task pane visible. If you don’t see the New File task pane, choose View, Toolbars, Task Pane to display it. 2. Click the General Templates link of the New from Template group (see Figure 3.1) to open the Templates dialog. 3. Click the Databases tab, and select one of the 10 database templates (*.mdz files) to build your new application from (see Figure 3.2). Access stores its templates in the \Program Files\Microsoft Office\Templates\1033 folder. This example uses the Contact Management.mdz template. Click OK to open the File New Database dialog. 4. The wizard proposes a default database with the name of the template plus a 1 suffix. The default location of the database file is your My Documents folder. Accept the default name or shorten it to Contacts.mdb (see Figure 3.3). Click Create to generate an empty Jet 4.0 database file (Contacts.mdb) and start the Database Wizard. 5. The first dialog of the Database Wizard describes the type of information that the new database stores (see Figure 3.4). Click Next to continue. 6. The second Wizard dialog lets you add or remove optional fields to each of the three tables. Optional fields appear in italic type in the list. To add or remove an optional field of the Contact file://J:\Alpha\chapters\JW225.html 11/5/2001 Chapter 3: Building a Simple Desktop and Web Application Page 3 of 17 Information table, mark or clear the check box (see Figure 3.5). Check the Home Phone field and click Next to continue. Figure 3.1 Double-clicking the General Templates link under the New from Template heading of the task pane opens the Templates dialog with the Databases page active. Figure 3.2 Select the Contact Management template in the Databases page of the Templates dialog. Figure 3.3 Shorten the default database file name, Contact Management1.mdb to Contacts.mdb. Figure 3.4 The first Database Wizard dialog offers a brief description of the new database. Figure 3.5 Add the optional Home Phone field of the Contact Information table of Contacts.mdb. NOTE You can remove only the optional fields you add. You can’t remove the standard set of fields that appear in Roman type; you receive an error message if you try. 7. The third Wizard dialog offers a selection of text colors and background colors or images for the data forms that the wizard creates. As you select an item in the list, a sample of the style appears in the dialog (see Figure 3.6). Select a form style and click Next to continue. Figure 3.6 Select the text color and background color or image for data-entry forms. 8. The fourth dialog lets you choose a style for printed reports (see Figure 3.7). Pick a report style, such as the conservative Soft Gray, and click Next to continue. Figure 3.7 Select the header and type styles for reports in the fourth wizard dialog. 9. You enter the title to appear on your forms and reports in the fifth Wizard dialog (see Figure 3.8). The default title is the name of the template file. Accept or edit the title. 10. If you have a bitmap (.bmp or .dib, device-independent bitmap) or vector (.wmf, Windows metafile, or .emf, enhanced metafile) image of a logo that’s of a size suited to the header of your reports, mark the Yes, I’d Like to Include a Picture check box. (The logo should be about 80x80 pixels or less.) Click the Picture button to open the Insert Picture dialog. Select the image file and then click OK to insert the image and close the Insert Picture dialog. file://J:\Alpha\chapters\JW225.html 11/5/2001 Chapter 3: Building a Simple Desktop and Web Application Page 4 of 17 Figure 3.8 Accept the default title to appear on forms and reports. 11. Click Next to open the final Wizard dialog (see Figure 3.9). With the Yes, Start the Database check box marked, click Finish to add the objects whose properties you’ve specified to the database file you named in step 4. Figure 3.9 Click Finish in the final Database Wizard dialog to start generation of the Contacts.mdb database. A set of progress bars displays the Wizard’s actions. The time required to complete the generation of database objects depends on your CPU’s and disk drive’s speed; it takes less than 10 seconds to finish the Contact Management database with a 667MHz Pentium III PC and a high-speed fixed-disk drive. After the Wizard completes its work, the Main Switchboard form for the completed Contact Management application appears, as shown in Figure 3.10. The Database window, which lets you manually open any of the objects in the Contacts database, is minimized at the bottom left of the display. Figure 3.10 When the Database Wizard completes its task, the Main Switchboard form opens. Touring the Contact Management Application The Contact Management application appears complex to most first-time Access users. The Database Wizard generates Table, Form, Report, and Module objects in the new database.
Recommended publications
  • Microsoft Office
    Microsoft Office MICROSOFT OFFICE INTRODUCTION Microsoft Office is an office suite of desktop applications, servers and services for the Microsoft Windows and OS X operating systems. It was first announced by Bill Gates of Microsoft on August 1, 1988 at COMDEX in Las Vegas. Initially a marketing term for a bundled set of applications, the first version of Office contained Microsoft Word, Microsoft Excel and Microsoft PowerPoint. Over the years, Office applications have grown substantially closer with shared features such as a common spell checker, OLEdata integration and Visual Basic for Applications scripting language. Microsoft also positions Office as a development platform for line-of-business software under the Office Business Applications brand. On 10 July 2012, Softpedia reported that Office is used by over a billion people worldwide. The current versions are Office 2013 for Windows, released on October 11, 2012; and Office 2011 for OS X, released October 26, 2010 On 24 October 2012, the RTM final code of Office 2013 Professional Plus was released to TechNet and MSDN subscribers for download. On 15 November 2012, the 60-day trial version of Office 2013 Professional Plus was released for download. All devices running Windows Phone and Windows RT come pre-installed with Office Mobile and Office RT, respectively. Office Mobile is also available for Android phones and the iPhone. A version of Office for the iPad was launched in March 2014. A web-based version of Office called Office Online, is also available COMPONENTS Word Microsoft Word is a word processor and was previously considered the main program in Office.
    [Show full text]
  • Microsoft® Pprroojjeecctt 22000022 Student Edition Complete
    Microsoft® PPrroojjeecctt 22000022 Student Edition Complete CustomGuide Computer Courseware © 2004 by CustomGuide, Inc. 1502 Nicollet Avenue South, Suite 1; Minneapolis, MN 55403 This material is copyrighted and all rights are reserved by CustomGuide, Inc. No part of this publication may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise, without the prior written permission of CustomGuide, Inc. We make a sincere effort to ensure the accuracy of the material described herein; however, CustomGuide makes no warranty, expressed or implied, with respect to the quality, correctness, reliability, accuracy, or freedom from error of this document or the products it describes. Data used in examples and sample data files are intended to be fictional. Any resemblance to real persons or companies is entirely coincidental. The names of software products referred to in this manual are claimed as trademarks of their respective companies. CustomGuide is a registered trademark of CustomGuide, Inc. Table of Contents Introduction .......................................................................................................................... 7 Chapter One: The Fundamentals...................................................................................... 11 Lesson 1-1: Plan the Project ................................................................................................12
    [Show full text]
  • Multi Approval Process
    The App for O365 MULTI APPROVAL PROCESS User – Administrator guides Version 2.0 https://ltaddins.com +84 946 579 539 [email protected] The App for O365 MENU Overview ...................................................................................................................................................... 4 User guides ................................................................................................................................................. 9 Submit a request .................................................................................................................................... 9 Approve/Reject a request ..................................................................................................................... 9 Cancel the request ............................................................................................................................... 10 View my request ................................................................................................................................... 11 View My tasks ....................................................................................................................................... 11 View all completed requests ............................................................................................................... 11 View all rejected requests ................................................................................................................... 12 View all approved requests ................................................................................................................
    [Show full text]
  • OCMM Core Basics: Virtual Office
    Core Basics: Virtual Office Housekeeping Be on time: Start of class Lunch/break Be here now! Close e-mail, work queues, applications Put cell phones away Participate: Share thoughts Ask questions Join in discussions Mute the phone line when not speaking Be respectful by not speaking over others when they are speaking Please do not place your phone on hold © 2020 Optum, Inc. All rights reserved. Confidential property of Optum. Do not distribute or reproduce without express permission from Optum. Muting the phone line Muting your phone line when not speaking helps minimize background noise. There are a few ways to accomplish this. 1. In the WebEx ,click on the microphone icon next to your name in the Participants panel, which toggles the mute status. Tip: During sharing, you can mute/unmute your microphone from the Meeting Controls Panel at the top of your screen. Hover over the green sharing notice at the top of the screen to expand the menu below. 2. Press the mute button located on the phone or headphones. © 2020 Optum, Inc. All rights reserved. Confidential property of Optum. Do not distribute or reproduce without express permission from Optum. Objectives After completing this module, you will be able to: Demonstrate basic use of Microsoft Word, Excel, Outlook and OneNote. © 2020 Optum, Inc. All rights reserved. Confidential property of Optum. Do not distribute or reproduce without express permission from Optum. Virtual office Whether you still work at the office or you work from home, your world revolves around the computer and technology. Today your success in business is dependent on your ability to navigate our virtual world.
    [Show full text]
  • Catálogo Cursos Plataforma Elearning
    CATÁLOGO CURSOS PLATAFORMA ELEARNING Bibliotecas académicas de elearning Descripción Academic Office Library Elearning sobre Microsoft Office Academic Windows Client Library Elearning sobre clientes de Windows Academic Windows Server Library Elearning sobre Microsoft Windows Server Academic Visual Studio Library Elearning sobre Microsoft Visual Studio Academic SQL Server Library Elearning sobre Microsoft SQL Server Academic SharePoint Library Elearning sobre Microsoft SharePoint Academic Exchange Server Library Elearning sobre Microsoft Exchange Server Academic Dynamics Library Elearning sobre Microsoft Dynamics Academic Other Servers and Tools Library Elearning sobre otras herramientas Academic Digital Literacy Library Elearning sobre alfabetización digital Partners in Learning: Microsoft Teaching with Elearning para el desarrollo tecnológico de los Technology instructores 2 Academic Office Library Curso Nombre del curso Idioma 4104 Course 4104: Core Training for Microsoft® Office Outlook® 2003 English 4105 Course 4105: Core Training for Microsoft® Office Word 2003 English 4106 Course 4106: Core Training for Microsoft® Office Excel 2003 English 4116 Course 4116: What's New in Microsoft® Office Professional Enterprise English Edition 2003 4128 Course 4128: Core Training for Microsoft® Excel 2002 English 4130 Course 4130: Core Training for Microsoft Office XP English 5128 Course 5128: Introducing Enterprise Telephony Using Microsoft Office English Communications Server 2007 5423 Course 5423: Working with Graphical Elements in Microsoft
    [Show full text]
  • Microsoft Access 2019 Textbook
    MICROSOFT ACCESS 2019 Tutorial and Lab Manual David Murray Microsoft Access 2019 Tutorial and Lab Manual David Murray University at Buffalo Copyright © 2020 by David J. Murray This work is licensed under a Creative Commons Attribution 4.0 International License. It is attributed to David J. Murray and the original work can be found at mgs351.com. To view a copy of this license, visit creativecommons.org/licenses/by/4.0/. Kendall Hunt Publishing Company previously published this book. Microsoft Access 2019 Tutorial and Lab Manual is an independent textbook and is not affiliated with, nor has been authorized, sponsored, or otherwise approved by Microsoft Corporation. Printed in the United States of America First Printing, 2014 ISBN 978-1-942163-02-2 This book is dedicated to my loving wife Amy and my precious daughter Giacinta. Table of Contents Preface .....................................................................................................vi Chapter 1 – Overview of Microsoft Access Databases ................................1 Chapter 2 – Design and Create Tables to Store Data ..................................7 Chapter 3 – Simplify Data Entry with Forms .............................................19 Chapter 4 – Obtain Valuable Information Using Queries ..........................32 Chapter 5 – Create Professional Quality Output with Reports ..................47 Chapter 6 – Design and Implement Powerful Relational Databases …..…..58 Chapter 7 – Build User-Friendly Database Systems ..................................68 Chapter
    [Show full text]
  • Receptionist / Office Assistant Company Visterra Is a Clinical Stage Biotechnology Company Committed to Developing Innovative An
    275 Second Avenue, 4th Floor · Waltham, MA 02451 www.visterrainc.com Tel: 617-498-1070 Receptionist / Office Assistant Company Visterra is a clinical stage biotechnology company committed to developing innovative antibody- based therapies for the treatment of patients with kidney diseases and other hard-to-treat diseases. Our proprietary technology platform enables the design and engineering of precision antibody-based product candidates that specifically bind to, and modulate, key disease targets. Applying this technology to disease targets that are not adequately addressed by traditional therapeutic approaches, we are developing a robust pipeline of novel therapies for patients with unmet needs. Visterra is a wholly owned subsidiary of Otsuka America, Inc., which is a U.S. holding company and a wholly owned subsidiary of Otsuka Pharmaceutical Co., Ltd. of Japan. Visterra has approximately 70 employees and is located in Waltham, Massachusetts. Summary Visterra is currently seeking a Receptionist/Office Assistant to join our growing team. The hours will be Monday through Friday from 8:30 AM – 5:00 PM. This highly visible position reports to the Senior Manager of Operations and Administration and will be seated at reception. Greet and direct visitors, route incoming calls to appropriate individuals as well as schedule conference rooms, order food/beverages for all meetings, support audio visual technology at meetings and any other coordination of office events. This person will assist in special projects for other teams as needed. This is a full-time laboratory-based position located at Visterra’s facility in Waltham, MA. Responsibilities • Greet and direct visitors upon arrival. • Answer the telephone, screen and direct calls.
    [Show full text]
  • ACCESS Table of Contents
    ACCESS Table of Contents BASIC BUILDING BLOCKS OF AN ACCESS DATABASE .......................................... 1 Tables ................................................................................................................... 1 Forms ................................................................................................................... 1 Reports ................................................................................................................. 2 Macros .................................................................................................................. 2 Modules ................................................................................................................ 2 CREATING A DATABASE ........................................................................................ 3 Create a database by using a template ................................................................... 3 Download a template from Office Online ................................................................. 4 Create a database without using a template ............................................................ 5 Create a blank database ......................................................................................... 5 CREATING TABLES ................................................................................................. 6 Create a table, starting in Datasheet view ............................................................... 6 Create a table, starting in Design view ...................................................................
    [Show full text]
  • Microsoft Access Expert 2019
    Course Orientation 40572A Microsoft Access expert 2019 Student version Microsoft license terms This courseware is the copyrighted work of Microsoft and/or its suppliers, and is licensed, not sold, to you. Microsoft grants you a license to use this courseware, but only in accordance with the “Guidelines” below. Except as expressly provided for herein, you may not copy, adapt, modify, prepare derivative works of, distribute, publicly display, sell or use this courseware, in whole or in part, for any commercial purpose without the express prior written consent of Microsoft Corporation. This courseware is provided to you “as-is.” Microsoft makes no warranties as to this courseware, express or implied. MICROSOFT CORPORATION HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS WITH REGARD TO THE SOFTWARE, INCLUDING ALL WARRANTIES AND CONDITIONS OF MERCHANTABILITY, WHETHER EXPRESS, IMPLIED OR STATUTORY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON- INFRINGEMENT. Microsoft may change or alter the information in this courseware, including URL and other Internet Web site references, without notice to you. Examples depicted herein are provided for illustration purposes only and are fictitious. No real association or connection is intended or should be inferred. This courseware does not provide you with any legal rights to any intellectual property in or to any Microsoft products. The Microsoft Terms of Use are incorporated herein by reference. Guidelines This courseware is only for use by instructors and only to teach a class for current Microsoft Imagine Academy program members. As a student, the following terms apply to your use of this courseware: • you will not grant any rights to copy, adapt, modify, prepare derivative works of, distribute, publicly display or sell this courseware; • you may not distribute this courseware; and • you will maintain and not alter, obscure or remove any copyright or other protective notices, identifications or branding in or on the courseware.
    [Show full text]
  • Importing from Excel
    Access Tables 3: Importing from Excel [email protected] Access Tables 3: Importing from Excel 1.0 hours Create Tables from Existing Data ............................................................................................................ 3 Importing from Microsoft Excel .............................................................................................................. 3 Step 1: Source and Destination ........................................................................................................ 3 Step 2: Worksheet or Range ............................................................................................................ 4 Step 3: Specify Column Headings ..................................................................................................... 4 Step 4: Specify information about fields .......................................................................................... 5 Step 5: Set Primary Key field ............................................................................................................ 5 Step 6: Name the Table .................................................................................................................... 6 Step 7: Save the Import Steps .......................................................................................................... 6 Linking from Microsoft Excel ............................................................................................................ 7 Import Errors ..........................................................................................................................................
    [Show full text]
  • Microsoft Access 2003 - a Beginners' Guide
    Microsoft Access 2003 - A Beginners' Guide This document is an introduction to Microsoft Access 2003, running under Microsoft Windows XP. For further information see Microsoft Access 2003 - An Intermediate Guide. Introduction A database manager is a computer program for storing information in an easily retrievable form. It is used mainly to store text and numbers (for example, the Library catalogue, which includes the author, title, class number and accession number for each book). Most modern database managers also allow the storage of other types of information such as dates, hyperlinks, pictures and sounds. As well as being able to store data, a database allows you to select information quickly and easily (for example, a list of the books written by a particular author or those on a certain subject). Finally, it may allow you to produce printed summaries (reports) of the information selected. When setting up your own database, it is important to plan its use in advance. This is particularly important if you are setting one up which will be used by other people. Among the things which you should consider are: • What information you will need to store • What information you want to get out • Who the data is intended for and how other users will use it • Whether you want to restrict access to parts of the data to some users only • Who is allowed to add or change data • If your data refers to actual people, it may need to be registered under the Data Protection Act Although you can change the specifications of your database as you develop it, you will save yourself a lot of work if as much as possible is planned in advance.
    [Show full text]
  • First Look 2007 Microsoft Office System Ebook
    A02L622655.fm Page iii Friday, May 19, 2006 3:23 PM PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2006 by Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number 2005939242 ISBN-13: 978-0-7356-2265-4 ISBN-10: 0-7356-2265-5 Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWE 1 0 9 8 7 6 Distributed in Canada by H.B. Fenn and Company Ltd. A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press Inter- national directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to [email protected]. Microsoft, ActiveX, Excel, InfoPath, Microsoft Press, MSDN, OneNote, Outlook, PivotChart, PivotTable, PowerPoint, SharePoint, Visio, Windows, Windows Mobile, and Windows Vista are either registered trade- marks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.
    [Show full text]