Code: 
MSACCESS4VBA
Duration: 
2-4 Day(s)
Price: 
£2000-255

Overview

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

Skills Gained

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

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

Course Specifics

Course Outline

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

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. It's a cost effective option.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.

Upcoming Dates

Course Location Days Cost Date
Onsite
2 255 £255 2018-07-16
Leicester
2 255 £255 2017-12-22
Leicester
2 255 £255 2017-11-10
Liverpool
4 2000 £2000 2017-11-06
Belfast
4 2000 £2000 2017-10-06
Leicester
2 255 £255 2017-10-04
Leicester
2 255 £255 2017-09-27
London
4 2000 £2000 2017-09-12
Cardiff
4 2000 £2000 2017-08-28
Birmingham
4 2000 £2000 2017-08-25
Leicester
2 255 £255 2017-08-21
Leeds
4 2000 £2000 2017-08-17
Glasgow
4 2000 £2000 2017-07-31
Oxford
4 2000 £2000 2017-07-31