Access Level 3: Programming with VBA

Introduction to Programming in Access; Why Program in Access?; Understanding the Development Environment; Using Visual Basic Help

Interested in attending?
Register your interest now

Description

3-day course Course
Code: LOONLCWACP13

WHO SHOULD ATTEND?

This class is designed for individuals who want to gain knowledge to program in Access with VBA

COURSE OBJECTIVES

Upon successful completion of this course, students will be able to:

  •  Understand the VBA development environment

  • Create modules, sub and function procedures

  • Work with object, properties, methods and events

  • Learn about the Access object hierarchy

  • Understand variables and constants

  • Word with expressions and statements

  • Use intrinsic functions

  • Work with control-of-flow structures

  • Work with the Record set object

  •  Understand errors and debug code

  • Trap and handle errors in code

COURSE CONTENT

LESSON 1: GETTING STARTED

Introduction to Programming in Access; Why Program in Access?; Understanding the Development Environment; Using Visual Basic
Help

LESSON 2: WORKING WITH PROCEDURES AND FUNCTIONS

Understanding Modules; Creating a Standard Module; Understanding Procedures; Creating a Sub Procedure; Calling Procedures;
Using the Immediate Window to Call Procedures; Creating a Function Procedure; Naming Procedures; Organizing Code and
Procedures; Working with the Code Editor

LESSON 3: UNDERSTANDING OBJECTS

Understanding Classes and Objects; Navigating the Access Object Hierarchy; Understanding Collections; Using the Object Browser;
Working with the Application Object; Understanding the Form Object; Working with Properties; Using the With Statement; Working
with Methods; Understanding the DoCmd Object; Working with Events; Understanding the Order of Events

LESSON 4: USING EXPRESSIONS, VARIABLES, AND INTRINSIC FUNCTIONS

Understanding Expressions and Statements; Declaring Variables; Understanding Data Types; Working with Variable Scope; Working
with Variable Lifetime; Considering Variable Scope and Lifetime Together; Using Intrinsic Functions; Understanding Constants; Using
Intrinsic Constants; Using Message Boxes; Using Input Boxes

LESSON 5: CONTROLLING PROGRAM EXECUTION

Understanding Control-of-Flow Structures; Working with Boolean Expressions; Using the If...End If Decision Structures; Using the
Select Case...End Select Structure; Using the For...Next Structure; Using the For Each...Next Structure; Using the Do...Loop Structure;
Guidelines for use of Branching Structures

LESSON 6: WORKING WITH RECORDSETS

Declaring and Creating Object Variables; Working with the DAO Recordset Object

LESSON 7: DEBUGGING CODE

Understanding Errors; Using Debugging Tools; Setting Breakpoints; Setting Break Expressions ;Using Break Mode during Run Mode;
Stepping through Code; Determining the Value of Expressions

LESSON 8: HANDLING ERRORS
Understanding Error Handling; Understanding VBA's Error Trapping Options; Trapping Errors with the On Error Statement;
Understanding the Err Object; Writing an Error-Handling Routine

Prerequisites

Microsoft Office Access Level 2 - Advanced Database Design or equivalent knowledge.