Andrew Comeau ...
 Drewslair.com


 

 

 

Programming Microsoft Access

An Introduction to Visual Basic for Applications
(Supplemental to Microsoft Access for Beginners)

Updated May 2010

This series is written for those new to Visual Basic for Applications, the language used for scripting within Microsoft Access.  It is also intended as a general introduction to programming concepts.  Before using this series, readers should be familiar with the basics of database design in Microsoft Access.

Demonstration Files

Demo.zip ( Download ) - Access demonstration database and original Excel spreadsheet (Requires Access and Excel 2000 or later)

Chapters

  1. Introduction
    What is Visual Basic for Applications?  How and why is it used with Microsoft Access?
  2. The VBA Environment
    An explanation of the programming environment and its tools.
  3. Variables
    Storing information in memory and referencing it for use in code.
  4. Procedures
    The basic units of code; methods, functions and custom properties.
  5. Arrays and Enumerations
    Taking variables to the next level by grouping them into arrays and enumeration types.
  6. Operators
    Mathematical, logical and other symbols available for use in VBA formulas.
  7. DoCmd
    Unique to VBA, this keyword offers a wealth of shortcut methods.
  8. Decision Structures
    Writing dynamic code that can make decisions on the fly.
  9. Loops
    Looping structures enable you to repeat a series of actions as many times as needed.  This chapter demonstrates both numbered and conditional loops.
  10. Algorithms
    Beyond commands and syntax, this chapter explains how to design a solution and turn it into code.

 

Comments and questions are welcome.  Your input can help to improve these articles for everyone!

For more information:

Access 2007 VBA Programmer's Reference (Programmer to Programmer)
Teresa Henning, Rob Cooper, Geoffrey L. Griffith, Armen Stein

 

© 2010, Andrew Comeau, except where otherwise noted. Material contained on this website should not be republished without permission from the author. Questions?  Comments?  You can e-mail me at this address.

Microsoft is a registered trademark of Microsoft Corporation in the United States and other countries.