Home > Store

Alison Balter's Mastering Access 2002 Desktop Development

Register your product to gain access to bonus material or receive a coupon.

Alison Balter's Mastering Access 2002 Desktop Development


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-32101-7
  • ISBN-13: 978-0-672-32101-6

What Ms Balter's book offers over most or all of the other books on the market is that Ms Balter is able to take a highly technical topic and present it in a manner that is easy to comprehend. It is a book that the reader will often want to read from cover to cover, but it can also act as an excellent reference.

  • Readers of Alison Balter's Mastering Microsoft Access 2002 Desktop Development will learn (
  • A thorough knowledge of Access application development. (
  • Real-world solutions to specific development and programming problems. (
  • Professional programming techniques backed by concise, no-nonsense explanations of the underlying theories. (
  • Debugging and troubleshooting methods to solve problems quickly and get stalled development projects back on track.

  • Sample Content

    Online Sample Chapter

    Relationships: Your Key to Data Integrity in Access

    Table of Contents

    (NOTE: Each chapter concludes with a summary.)



    1. Access as a Development Tool.

    Why This Chapter Is Important. What Types of Applications Can You Develop in Access? Access as a Scalable Product. What Exactly Is a Database? Getting to Know the Database Objects. Object Naming Conventions. Hardware Requirements. How Do I Get Started Developing an Access Application? What's New in Access 2002.

    2. What Every Developer Needs to Know About Tables.

    Why This Chapter Is Important. Building a New Table. Selecting the Appropriate Field Type for Your Data. Working with Field Properties. The All-Important Primary Key. Working with the Lookup Feature. Working with Table Properties. Using Indexes to Improve Performance. Access Tables and the Internet. Working with PivotTable and PivotChart Views.

    3. Relationships: Your Key to Data Integrity.

    Why This Chapter Is Important. Introduction to Relational Database Design. Establishing Relationships in Access. Establishing Referential Integrity. Looking at the Benefits of Relationships. Examining Indexes and Relationships.

    4. What Every Developer Needs to Know About Query Basics.

    Why This Chapter Is Important? What Is a Query, and When Should You Use One? Everything You Need to Know About Query Basics. Ordering Your Query Result. Refining Your Query with Criteria. Working with Dates in Criteria. Understanding How Query Results Can Be Updated. Building Queries Based on Multiple Tables. Creating Calculated Fields. Getting Help from the Expression Builder. Summarizing Data with Totals Queries. Excluding Fields from the Output. Nulls and Query Results. Refining Your Queries with Field, Field List, and Query Properties. Building Parameter Queries When You Don't Know the Criteria at Design. Time.

    5. What Every Developer Needs to Know About Forms.

    Why This Chapter Is Important. Uses of Forms. Anatomy of a Form. Creating a New Form. Working with the Form Design Window. Selecting the Correct Control for the Job. Control Morphing. Conditional Formatting. What Form Properties Are Available, and Why Should You Use Them? What Control Properties Are Available, and Why Use Them? Bound, Unbound, and Calculated Controls. Using Expressions to Enhance Your Forms. The Command Button Wizards: Programming Without Typing. Building Forms Based on More Than One Table. Basing Forms on Queries: The Why and How. Access Forms and the Internet.

    6. What Every Developer Needs to Know About Reports.

    Why This Chapter Is Important. Types of Reports Available. Anatomy of a Report. Creating a New Report. Working with the Report Design Window. Selecting the Correct Control for the Job. What Report Properties Are Available and Why Use Them. What Control Properties Are Available and Why Use Them. Inserting Page Breaks. Unbound, Bound, and Calculated Controls. Using Expressions to Enhance Your Reports. Building Reports Based on More Than One Table. Working with Sorting and Grouping. Improving Performance and Reusability by Basing Reports on Stored. Queries or Embedded SQL Statements. Access Reports and the Internet.

    7. VBA: An Introduction.

    Why This Chapter Is Important. VBA Explained. What Are Access Class Modules, Standard Modules, Form Modules, and Report Modules? Working with Variables. Adding Comments to Your Code. Using the Line Continuation Character. Using the VBA Control Structures. Passing Parameters and Returning Values. Executing Procedures from the Module Window. The DoCmd Object: Performing Macro Actions. Working with Built-In Functions. Working with Constants. Tools for Working in the Visual Basic Editor. Customizing the VBE.

    8. Objects, Properties, Methods, and Events Explained.

    Why This Chapter Is Important. Understanding Objects, Properties, Events, and Methods. Using the Object Browser to Learn About Access's Objects. Referring to Objects. Properties and Methods Made Easy. Declaring and Assigning Object Variables. Understanding the Differences Between Objects and Collections. Passing Objects to Subroutines and Functions. Determining the Type of a Control. Special Properties That Refer to Objects. Understanding Access's Object Model. New Access 2002 Properties.

    9. Advanced Form Techniques.

    Why This Chapter Is Important. What Are the Form Events, and When Do You Use Them? What Are the Section and Control Events, and When Do You Use Them? Referring to Me. What Types of Forms Can I Create, and When Are They Appropriate? Using Built-In Dialog Boxes. Adding Custom Menus, Toolbars, and Shortcut Menus to Your Forms. Taking Advantage of Built-In, Form-Filtering Features. Including Objects from Other Applications: Linking Versus Embedding. OpenArgs. Switching a Form's RecordSource. Power Combo Box and List Box Techniques. Power Subform Techniques. Synchronizing a Form with Its Underlying Recordset. Creating Custom Properties and Methods.

    10. Advanced Report Techniques.

    Why This Chapter Is Important. Events Available for Reports, and When to Use Them. Order of Events for Reports. Events Available for Report Sections, and When to Use Them. Programmatically Manipulating Report Sections. Special Report Properties. Controlling the Printer. Practical Applications of Report Events and Properties.

    11. Advanced Query Techniques.

    Why This Chapter Is Important. Action Queries. Special Query Properties. Optimizing Queries. Crosstab Queries. Outer Joins. Self Joins. Understanding SQL. Union Queries. Pass-Through Queries. The Propagation of Nulls and Query Results. Subqueries. Using SQL to Update Data. Using SQL for Data Definition. Using the Result of a Function as the Criteria for a Query. Passing Parameter Query Values from a Form. Jet 4.0 ANSI-92 Extensions.

    12. Advanced VBA Techniques.

    Why This Chapter Is Important. What Are User-Defined Types, and Why Would You Use Them? Working with Constants. Working with Arrays. Advanced Function Techniques. Working with Empty and Null. Creating and Working with Custom Collections. Low-Level File Handling. Understanding and Effectively Using Compilation Options. Importing and Exporting Code Modules. Working with Project Properties.

    13. Exploiting the Power of Class Modules.

    Exploring the Benefits of Class Modules. Object Orientation-An Introduction. Creating and Using a Class Module. Creating Multiple Class Instances. The Initialize and Terminate Events. Working with Enumerated Types. Building Hierarchies of Classes. Adding a Parent Property to Classes. The Implements Keyword. Working with Custom Collections. Adding Your Own Events.

    14. What Are ActiveX Data Objects and Data Access Objects, and Why Are They Important?

    Why This Chapter Is Important. Using ActiveX Data Objects Versus Data Access Objects. Examining the ActiveX Data Object Model. Understanding ADO Recordset Types. Working with ADO Recordset Properties and Methods. Modifying Table Data Using ADO Code. Creating and Modifying Database Objects Using ADO Code. Examining the Data Access Object Model. Getting to Know DBEngine. Using CurrentDB(). Understanding DAO Recordset Types. Selecting Among the Types of DAO Recordset Objects Available. Working with DAO Recordset Properties and Methods. Modifying Table Data Using DAO Code. Creating and Modifying Database Objects Using DAO Code. Using the DAO Containers Collection.


    15. Debugging: Your Key to Successful Development.

    Why This Chapter Is Important. Avoiding Bugs. Harnessing the Power of the Immediate Window. Invoking the Debugger. Using Breakpoints to Troubleshoot. Stepping Through Code. Setting the Next Statement to Execute. Using the Calls Window. Working with the Locals Window. Working with Watch Expressions. Continuing Execution After a Runtime Error. Looking At Gotchas with the Immediate Window. Using Assertions. Debugging Tips.

    16. Error Handling: Preparing for the Inevitable.

    Why This Chapter Is Important. Implementing Error Handling. Using On Error Statements. Using Resume Statements. Clearing an Error. Examining the Cascading Error Effect. Using the Err Object. Raising an Error. Using the Errors Collection. Creating a Generic Error Handler. Preventing Your Own Error Handling from Being Invoked. Creating a Call Stack. Building a Custom Error Handler Class. Working with Error Events. Creating a List of Error Codes and Descriptions.

    17. Optimizing Your Application.

    Why This Chapter Is Important. Introducing Optimization. Modifying Hardware and Software Configurations. What Jet 3.5 Did to Improve Performance. Understanding What Jet 4.0 Does to Improve Performance. Letting the Performance Analyzer Determine Problem Areas. Designing Tables to Optimize Performance. Designing Queries to Optimize Performance. Making Coding Changes to Improve Performance. Designing Forms and Reports to Improve Performance.


    18. A Strategy to Developing Access Applications.

    Why This Chapter Is Important. Splitting Databases into Tables and Other Objects. Basing Forms and Reports on Queries or Embedded SQL Statements. Understanding the Access Runtime Engine. Using an EXE Versus Access Database: What It Means to You. Understanding the Importance of Securing Your Database. Using Access as a Front End.

    19. Using External Data.

    Why This Chapter Is Important. Importing, Linking, and Opening Files: When and Why. Importing External Data. Creating a Link to External Data. Opening an External Table. Understanding Windows Registry Settings. Using the Jet OLEDB:Link Provider String. Refreshing and Removing Links. Looking at Special Considerations. Troubleshooting. Looking at Performance Considerations and Links. Working with HTML Documents.

    20. Developing Multiuser and Enterprise Applications.

    Why This Chapter Is Important. Designing Your Application with Multiuser Issues in Mind. Understanding Access's Locking Mechanisms. Understanding the Client/Server Model. Deciding Whether to Use the Client/Server Model. The Roles Access Plays in the Application Design Model. Learning the Client/Server Buzzwords. Upsizing: What to Worry About. Proactively Preparing for Upsizing. Introduction to Transaction Processing. Understanding the Benefits of Transaction Processing. Modifying the Default Behavior of Transaction Processing. Implementing Explicit Transaction Processing. Introduction to Replication. Uses of Replication. Understanding When Replication Isn't Appropriate. Understanding the Implementation of Replication.


    21. Using ActiveX Controls.

    Why This Chapter Is Important. Incorporating ActiveX Controls in Access 2002. Setting Properties of an ActiveX Control at Design Time. Coding Events of an ActiveX Control. Using the Calendar Control. Using the UpDown Control. Using the StatusBar Control. Using the Common Dialog Control. Using the Rich Textbox Control. Using the TabStrip Control. Using the ImageList Control. Licensing and Distribution Issues.

    22. Automation: Communicating with Other Applications.

    Why This Chapter Is Important. Defining Some Automation Terms. Declaring an Object Variable to Reference Your Application. Creating an Automation Object. Manipulating an Automation Object. Early Binding Versus Late Binding. Controlling Excel from Access. Closing an Excel Automation Object. Creating a Graph from Access. Controlling Word from Access. Controlling PowerPoint from Access. Automating Outlook from Access. Controlling Access from Other Applications.

    23. Exploiting the Power of the Windows API.

    Why This Chapter Is Important. Declaring an External Function to the Compiler. Working with Constants and Types. Calling DLL Functions: Important Issues. Examining the Differences Between 16-Bit and 32-Bit APIs. Using API Functions. Manipulating the Windows Registry. Getting Information About the Operating Environment. Determining Drive Types and Available Drive Space.

    24. Creating Your Own Libraries.

    Why This Chapter Is Important. Preparing a Database to Be a Library. Creating a Reference. Debugging a Library Database. Securing an Access Library.

    25. Using Builders, Wizards, and Menu Add-Ins.

    Why This Chapter Is Important. Using Builders. Using Wizards. Using Menu Add-Ins.

    26. An Introduction to Access and the Internet/Intranet.

    Why This Chapter Is Important. Saving Database Objects as HTML. Linking to HTML Files. Importing HTML Files. Understanding Data Access Pages. Creating Data Access Pages. Modifying Important Properties of a Data Access Page. Modifying the Record Navigation Control Properties. Creating Grouped Data Access Pages. Augmenting Data Access Pages with VBScript.


    27. Database Security Made Easy.

    Why This Chapter Is Important. Implementing Share-Level Security: Establishing a Database Password. Encrypting a Database. Establishing User-Level Security. Securing VBA Code with a Password. Providing an Additional Level of Security: Creating an MDE. Securing a Database Without Requiring Users to Log On. Looking at Special Issues.

    28. Advanced Security Techniques.

    Why This Chapter Is Important. Maintaining Groups Using Code. Using Code to Maintain Users. Listing All Groups and Users. Working with Passwords. Assigning and Revoking Permissions to Objects Using Code. Encrypting a Database Using Code. Accomplishing Field-Level Security Using Queries. Prohibiting Users and Groups from Creating Objects. Accomplishing Prohibited Tasks by Logging On as a Different User. Securing Client/Server Applications. Security and Replication. Implementing Security with SQL. DAO and Security. Choosing Between ADOX, SQL, and DAO.

    29. Documenting Your Application.

    Why This Chapter Is Important. Preparing Your Application to Be Self-Documenting. Using the Database Documenter. Writing Code to Create Your Own Documentation.

    30. Maintaining Your Application.

    Why This Chapter Is Important. Compacting Your Database. Converting an Access Database. Detecting Broken References.

    31. Third-Party Tools That Can Help You to Get Your Job Done Effectively.

    Why This Chapter Is Important. Total Access CodeTools. Total Access Analyzer. Total Visual Agent. Total Access Components. Total Access Statistics. Total Access Detective. Total Visual SourceBook. Total Access Memo. Solutions::Explorer. Component Toolbox OCX. Solutions::Schedule. Solutions::PIM Professional.

    32. Distributing Your Application.

    Why This Chapter Is Important. Introducing the Packaging Wizard. Loading the Packaging Wizard Add-In. Distributing Your Application to Run with a Full Copy of Access. Using Full Versions Versus Runtime Versions of Access. Preparing Your Database for Use with the Access Runtime Version. Looking at Other Issues.


    Appendix A: Table Structures.

    The tblClients Table. The tblClientAddresses Table. The tblAddressTypes Table. The tblClientPhones Table. The tblPhoneTypes Table. The tblCorrespondence Table. The tblCorrespondenceTypes Table. The tblTerms Table. The tblContactTypes Table. The tblCompanyInfo Table. The tblEmployees Table. The tblErrorLog Table. The tblErrors Table. The tblExpenseCodes Tables. The tblPaymentMethods Table. The tblPayments Table. The tblProjects Table. The tblTimCardExpenses Table. The tblTimeCardHours Table. The tblTimeCards Table. The tblWorkCodes Table.

    Appendix B: Naming Conventions.


    Updates & Corrections

    Updated databases for Chapters 7, 8, and 9 - 1,966 kb -- updates.zip

    Submit Errata

    More Information

    InformIT Promotional Mailings & Special Offers

    I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.


    Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

    This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

    Collection and Use of Information

    To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

    Questions and Inquiries

    For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

    Online Store

    For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.


    Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

    Contests and Drawings

    Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.


    If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

    Service Announcements

    On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

    Customer Service

    We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

    Other Collection and Use of Information

    Application and System Logs

    Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

    Web Analytics

    Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

    Cookies and Related Technologies

    This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

    Do Not Track

    This site currently does not respond to Do Not Track signals.


    Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.


    This site is not directed to children under the age of 13.


    Pearson may send or direct marketing communications to users, provided that

    • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
    • Such marketing is consistent with applicable law and Pearson's legal obligations.
    • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
    • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

    Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

    Correcting/Updating Personal Information

    If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.


    Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

    Sale of Personal Information

    Pearson does not rent or sell personal information in exchange for any payment of money.

    While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

    Supplemental Privacy Statement for California Residents

    California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

    Sharing and Disclosure

    Pearson may disclose personal information, as follows:

    • As required by law.
    • With the consent of the individual (or their parent, if the individual is a minor)
    • In response to a subpoena, court order or legal process, to the extent permitted or required by law
    • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
    • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
    • To investigate or address actual or suspected fraud or other illegal activities
    • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
    • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
    • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.


    This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

    Requests and Contact

    Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

    Changes to this Privacy Notice

    We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

    Last Update: November 17, 2020