Print this page Share

Access VBA Programming For Dummies

ISBN: 978-0-7645-7411-5
408 pages
August 2004
Access VBA Programming For Dummies (0764574116) cover image


  • This friendly, easy-to-use guide shows experienced Access users how to use
  • VBA (Visual Basic for Applications) to build Access databases and applications, but also covers programming fundamentals for nonprogrammers
  • Includes practical, ready-to-use VBA code examples that readers can type or copy and paste from the Web into their own database projects
  • Explains basic VBA skills and concepts for nonprogrammers, such as procedures, variables, and loops
  • Covers more advanced topics, such as record sets and other programming activities that are unique to Access programming
  • Author has written more than ninety computer books and has been working with databases since the early 1980s
See More

Table of Contents

Introduction 1

Part I: Introducing VBA Programming 7

Chapter 1: Where VBA Fits In 9

Chapter 2: Your VBA Toolkit 21

Chapter 3: Jumpstart: Creating a Simple VBA Program 35

Part II: VBA Tools and Techniques 49

Chapter 4: Understanding Your VBA Building Blocks 51

Chapter 5: Controlling Access through VBA 71

Chapter 6: Programming Access Forms 87

Part III: VBA, Recordsets, and SQL 115

Chapter 7: The Scoop on SQL and Recordsets 117

Chapter 8: Putting Recordsets to Work 147

Part IV: Applying VBA in the Real World 173

Chapter 9: Creating Your Own Dialog Boxes 175

Chapter 10: Customizing Lists and Drop-Down Menus 201

Chapter 11: Creating Your Own Functions 241

Chapter 12: Testing and Debugging Your Code 267

Part V: Reaching Out with VBA 295

Chapter 13: Using VBA with Multiple Databases 297

Chapter 14: Integrating with Other Office Applications 317

Part VI: The Part of Tens 349

Chapter 15: Ten Commandments of Writing VBA 351

Chapter 16: Top Ten Nerdy VBA Tricks 357

Chapter 17: (Way More Than) Ten Shortcut Keys 367

Index 371

See More

Author Information

Alan Simpson is the author of over 90 computer books on databases, Windows, Web site design and development, programming, and networking. His books are published throughout the world in over a dozen languages and have millions of copies. Alan has also taught introductory and advanced computer programming courses at San Diego State University and the UCSD Extension. He has served as a consultant on high-technology, educationoriented projects for the United States Navy and Air Force. Despite that, Alan has no fancy job title because he has never had a real job.
See More


Download TitleSizeDownload
Chapter 6 Source Code

Here you can download all the source code from this book. The files are organized by chapter. Please note that these samples are saved in a ZIP format archive. You can download the individual chapter or if you have a high speed internet connection, we have included all of the chapter files in one download file. To access them, you'll may need to install a program capable of reading ZIP format archives, such as WinZip or WinRAR.

27.11 KB Click to Download
Chapter 7 Source Code 11.36 KB Click to Download
Chapter 8 Source Code 18.61 KB Click to Download
Chapter 9 Source Code 49.79 KB Click to Download
Chapter 10 Source Code 144.95 KB Click to Download
Chapter 11 Source Code 32.00 KB Click to Download
Chapter 12 Source Code 9.16 KB Click to Download
Chapter 13 Source Code 13.49 KB Click to Download
Combined Chapters Source Code 1.08 MB Click to Download
Spin Buttons 1.87 KB Click to Download
A set of Rolodex-style buttons (see below) that users can click to quickly jump to any section of a lengthy table. After downloading, see the RolobuttonsExample form for an example. Then see the Instructions for Use form for instructions on adapting the buttons to your own database. (You only have to change one word in the VBA code!).
71.69 KB Click to Download
MOM 2003 Sample Database
Throughout the book you saw several sample forms used as examples (see below). All of those forms came from my MOM 2003 sample database. You can download that whole database. The zip file contains two versions: In version 1, all tables are empty, so you'll get off to a clean start on entering data. In version 2, you the database already contains some fake sample data, so you can explore its features without first entering data. Either version should work fine in Access 2000, 2002, and 2003.
725.16 KB Click to Download
See More

Related Titles

Back to Top