WWP key in developing people
Duration: 2 day(s)
Course Code: AC0710VB
Dates
London Centre 4th Jul 2012 book
Price:
£690.00
+VAT
print this page
email this page

Access 2007/10 Programming with VBA

Aims

This course will help students to become proficient database application developers by using the features of Microsoft Access 2007/10 and Visual Basic for Applications

Prerequisites

Students wishing to attend this course should have completed foundation and advanced courses in Access 2007/10 or have equivalent practical experience. Specifically, students should be familiar with creating queries, creating forms and reports, creating and using macros.

Objectives

On completion of this course delegates will be able to:

  • Automate the application interface, automate dialog boxes, use Visual Basic for Applications (VBA) code elements, and automate navigation across forms
  • Create and automate forms
  • Create User-defined functions
  • Use different VBA programming elements, work with modules, and create procedures in modules
  • Use control and loop structures in VBA code, handle events by automating controls on forms, trap and resolve errors in code
     

Course Content

Getting Started 

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

 

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
  • Organising Code and Procedures
  • Working with the Code Editor 

 

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

 

Using Expressions, Variables, and Intrinsic Functions 

  • Understanding Expressions and Statements
  • Declaring Variables
  • Understanding Data Types
  • Working with Variable Scope
  • Using Intrinsic Functions
  • Understanding Constants
  • Using Intrinsic Constants
  • Using Message Boxes
  • Using Input Boxes 

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 

 

Working with Recordsets 

  • Declaring and Creating Object Variables
  • Working with the ADODB Recordset Object 

 

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 

 

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
  • Working with Inline Error Handling 

Click to expand...

Perfect Partners

Other courses which naturally complement this course include:

  • Excel 2007/10: Levels 5 to 7
  • Word 2007/10: VBA Programming
 

Next Learning Step

A course could be tailored depending on client specifications