Home > Store > Data > SQL Server

Sams Teach Yourself Microsoft Access 2002 Programming in 24 Hours

Sams Teach Yourself Microsoft Access 2002 Programming in 24 Hours

eBook (Adobe DRM)

  • Your Price: $19.19
  • List Price: $23.99
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:

    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

Also available in other formats.

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


  • Copyright 2002
  • Pages: 576
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-5949-3
  • ISBN-13: 978-0-7686-5949-8

Sams Teach Yourself Access 2002 Programming in 24 Hours will considerably improve the quality of the database applications that the reader can create with Microsoft Access. Concise tutorials that quickly bring the reader up to speed will be the goal of each chapter. Having completed this book, the readers will be able to understand any sample VBA code that they see, and will possess the skills to attack all of the most common Access programming tasks. Topics covered in the book will include: ¨ Using data aware controls ¨ Creating data aware web pages ¨ Creating views to organize data ¨ Building reusable code modules ¨ Programming reports ¨ Communicating results with graphing ¨ Automating contact and task management with Outlook ¨ Access programming for Internet Explorer

Sample Content

Table of Contents

(NOTE: Each chapter concludes with Summary, Q&A, and a Workshop.)



Hour 1. What's New in Access 2002.

New Side Panes for Easier Navigation. Customizing Menus and Toolbars. Spell-Checking Data. Editing Options. Speech Command and Control. Collaborating Online. Network Places. Remove Author Information. Introducing ActiveX Data Objects. Programming Objects. Adding Data to Web Pages. Access Projects.

Hour 2. Exploring VBA.

Understanding How Access VBA Works. Learning Access VBA Keywords. Access Operators and Operands. Data: What a Program Knows. Putting It All Together. Prelude to Advanced Topics.

Hour 3. Storing Your Program's Data.

How Memory Is Used. Declaring Variables. Data Assignment and Evaluation. Be Explicit. Using Pop-up Hints. Using the Locals Window. Using the Watches Window. Running Code in the Immediate Window. Employing the Call Stack.

Hour 4. Controlling Program Flow and Performing Calculations.

What Goes into an Equation. Understanding Operator Count. Using Arithmetic Operators. Performing Comparisons. The Truth of Logical Operators. Concatenate It. Who Has Precedence Here? Special Operators.


Hour 5. Learning to Write Conditional Code.

A Programmer's Traffic Cop. Tidying Up Nested Conditional Statements. Want to Go for a Spin? Take It Once Around the Block. Iterating Through Data. Iterating Collections of Data. Short-circuiting Code. Using the Switch Function.

Hour 6. Managing Your Database.

Access 2002 Is Backward Compatible with Access 2000. Creating a Database. Managing a Table with Code. Iteratively Inputting User Data. Using Conditional Code to Find Data.

Hour 7. Using Advanced Data Types to Manage Data.

Understanding OLE Automation. Using the ADODB Object. Using the ADOX Object.


Hour 8. Solving Problems a Piece at a Time.

The Mechanics of Writing Subroutines. The Mechanics of Writing Functions. Programming Rules of Thumb. Tying It All Together.

Hour 9. Using Macros As Learning Aids.

Creating a Macro 101. Using CopyObject. Using DeleteObject. The Keys to the City. Importing Data. Using Macro Resources in Code. To Macro or Not to Macro.

Hour 10. Employing Access Predefined Solutions.

Using String-Handling Functions. Formatting Data. Using Date and Time Functions. Managing File I/O. Dynamic User Input Functions. Using Function, Method, Property, and Statement References.


Hour 11. Making the Complex Simple: Creating Your Own Data Types.

Understanding Aggregation. Using the Type Declaration. What Kind of Data Can Go into My Type? Declaring Instances of User Types. Defining Enumerated Types. Putting It All Together.

Hour 12. Managing Varying Amounts of Data.

Understanding Arrays. Declaring Arrays. Using Arrays to Store Data. Functions for Managing Arrays. Returning Arrays from a Function. Things You Should Do When Using Arrays. Sorting Array Data.

Hour 13. Storing Information in a Collection.

Understanding Collections. Declaring Collection Variables. Managing a Data Collection. Places You'll Find Collections.


Hour 14. Managing Your Code.

Naming Conventions. Using Whitespace Consistently. Managing Complexity. Commenting Guidelines. Understanding the Benefits of Code Reuse. Testing and Debugging. Managing Data.

Hour 15. Data Programming Made Easy with ADODB.

Connecting to a Database. Managing a Recordset. Finding Records. Copying Data to a Collection Object. Using AddItem and RemoveItem. Finding ActiveX Data Objects Resources Online.

Hour 16. Using Advanced SQL Techniques.

Using the SELECT Statement. Inserting New Data. Updating Data. Deleting Data. Calling Functions in SQL Code. Writing Stored Procedures. Querying a SQL Server Database.


Hour 17. Removing Bugs.

Scaffolding. Trapping Code. Tracing Code. Asserting Assumptions. Using Compiler Directives. Making Debug Code Read-Only. Development Versus Deployment Error Handling.

Hour 18. Adding Code to Handle Errors.

Comparing Error-Handling Styles. Writing Error Handlers. Clearing the Error Handler. Writing Silent Error Handlers. Using the Err Object. Using Error Handlers to Validate User Input. Creating the Resource-Protection Block Idiom. Reviewing the Debug Object.


Hour 19. Creating Custom Forms and Reports.

Using Form Wizards. Customizing Wizard Forms. Testing Your Form. Defining a Report. Setting the Startup Point for Your Program.

Hour 20. Adding Data to Web Pages.

Comparing Intranets to Internets. Understanding Web Pages. Building the Database Used for the Demo. Using Wizards to Generate Web Pages. Using Web Page Design Tools. Adding a PivotTable to Web Pages. XML's Role in Access.


Hour 21. Class Programming Basics.

Understanding the Need for Classes. Creating Your First Class. Hiding Information to Make Code Easier to Use. Defining Class Methods. Defining Properties. Writing Initialization and Termination Code. Writing a New Class. Creating an Instance of a Class.

Hour 22. Adding Capabilities to Your Data Types.

Defining the Objective. Understanding When to Write a Class. Applying Basic Principles of Object-Oriented Design. Extending Existing Classes. Testing Your New Class. Using the Strings Class.

Hour 23. Writing Access Add-Ins.

Introducing Add-Ins. Defining an Error-Logging Database. Defining a Viewer for the Error Log. Testing the Error Logging Add-In Database. Installing and Uninstalling Add-ins. Going for a Test Drive. Summarizing the Process.

Hour 24. Managing Outlook Contact Information.

Understanding Outlook 2002. Introducing the Outlook Object Model. Viewing Outlook Contacts in Access. Updating Outlook Information. Searching the Body of a Mail Item. Undeleting Mail Items. Sending Mail to Contacts Automatically.


Appendix A. Answers.

Hour 1. Hour 2. Hour 3. Hour 4. Hour 5. Hour 6. Hour 7. Hour 8. Hour 9. Hour 10. Hour 11. Hour 12. Hour 13. Hour 14. Hour 15. Hour 16. Hour 17. Hour 18. Hour 19. Hour 20. Hour 21. Hour 22. Hour 23. Hour 24.



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership