Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Instructor-led training - Access VBA Training

Access VBA Training Courses London, UKAccess VBA Basics Training Course

Microsoft Access Intro Intermediate (all versions)

Face to face / Online closed & onsite training. Restaurant lunch included at STL venues.

  • 2 days Instructor-led
London & UK wide

Who is this course for?

Advanced users of Microsoft Access responsible for managing very large and variable amounts of data, or teams, who want to learn how to program features and functions to improve the accessibility and usability of their data.

Prerequisites

A high proficiency of Microsoft Access is essential, or completion of our Microsoft Access Advanced course.

Benefits


  • At the end of the course the delegate will have covered the fundamentals of VBA, including working with procedures and functions, understanding objects, using expressions, variables and intrinsic functions.
  • They will have mastered how to control program execution, working with forms and controls, working with the PivotTable object.
  • Finally the course also includes modules on debugging code, handling errors to ensure minimal downtime while building and effecting the program.

Course Syllabus

Getting Started

Introduction to access programming
Understanding the development environment
Using VB help

Developing with Procedures and Functions

Understanding and creating modules
Defining procedures
Creating a sub-procedure
Calling procedures
Utilising the immediate window to call procedures
Making and naming a function procedure
Working using 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

Utilising Intrinsic Functions, Variables and Expressions

Defining expressions and statements
How to declare variables
Determining data types
Programming with variable scope
Harnessing intrinsic functions
Defining constants and using intrinsic constants
Adding message boxes and using input boxes
How to declare and use object variables

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
Specifying a recordset cursor type
Locking records for updating
Specifying a recordset cursor location - optional
Using the cache size property - optional
Understanding recordset cursor properties - optional

Debugging the Code

Defining errors
Working with debugging tools
Determining breakpoints
How to step through code
Working with break mode during run mode
Identifying the value of expressions

Handling Errors

Understanding error handling
Understanding VBA's error trapping options
Trapping errors with the on error statement
Understanding the error object
Writing an error handling routine
Working with inline error handling

"What do I get on the day?"

Arguably, the most experienced and highest motivated trainers.

Face-to-face training

lunch

Training is held in our modern, comfortable, air-conditioned suites.

Modern-spec IT, fully networked with internet access

Lunch, breaks and timing

A hot lunch is provided at local restaurants near our venues:

  • Bloomsbury
  • Limehouse

Courses start at 9:30am.

Please aim to be with us for 9:15am.

Browse the sample menus and view joining information (how to get to our venues).

Refreshments

Available throughout the day:

  • Hot beverages
  • Clean, filtered water
  • Biscuits

Online training

online training (virtual)

Regular breaks throughout the day.

Learning tools

in-course handbook

In-course handbook

Contains unit objectives, exercises and space to write notes

Reference material

Available online. 100+ pages with step-by-step instructions

24 months access to Microsoft trainers

Your questions answered on our support forum.

What to expect when training

Training Formats & Services

Training formats available

  • On-site at your company office UK wide
  • Closed group at one of our London training venues
  • Near-site at a location close to you
  • Bespoke one-to-one basis
  • Tailored training courses to your requirements
  • Executive coaching & mentoring

Summary

UBS Global Asset Management

gravatar

Good course. Very helpful trainer. Pace was a little bit slower today for me but understandable with different levels in the group. Having somewhere to go for lunch is also a very welcome addition to courses!

Novolio Ltd t/a Off to work

gravatar

Marco Pinto,
FD

Jens was extremely helpful in finding out results to questions we had. I was amazed about his enthusiasm.
Loved the course and would love to attend another one Jens hosts.

Thank you so much Jens.

PwC

gravatar

Anna Decourcy,
Senior Associate/Executive

The trainer is a very clear and concise trainer. He was very patient with the varying levels of skill in the room and worked through the content with enthusiasm and related examples back to the delegates work places.

Would definitely recommend and will be using what I've learnt tomorrow!

More testimonials

Learn all about Procedures, Functions, and Objects in our VBA Basics Training Courses for MS Access. Three levels are available: Introduction, Intermediate and Advanced.

This basics course teaches control program execution, forms and working with the PivotTable object - a popular unit among most of our course attendees.

Loading...

Loading content...

TrustPilot

star star star star star Excellent

Resources

Blog

Tutorials and discussions on MS Office

Hints & Tips

MS Office tips to save you time

Cheat sheets

MS Office shortcut keys for all versions

Infographics

Handy info on industry trends

Subscribe

Latest news & offers

Promotions

Latest Feedback

  • 98.70% customer recommendation
  • 99.19% training objectives met
  • 226,755 delegates trained
  • 14,566 organisations trained

Latest X / Tweet

  • Boost productivity & profitability with STL Training! 💼 ✅ No course cancellations 🖥️ Virtual or in-person in London 🍽️ Lunch included 📚 2 years of support This week: Word Intermediate—graphics, Excel data stl-training.co.uk/order/pricing_…t.co/QSQqMqK3Go
Loading...

Loading content...

Free manuals

We are providing a range of our course manuals free of charge.

Why not share this resource with your friends and colleagues?

Training manual sample

Below are some extracts from our Access training manuals.

Visual Basic for Applications or VBA is a development environment built into the Microsoft Officeã Suite of products.

VBA is an Object Oriented Programming (OOP) language. It works by manipulating objects.  In Microsoftä Officeâ  the programs are objects. 

In Access worksheets, tables, forms, reports and queries are also objects.

In VBA the object is written first

I’m fixing house number 42 = .House.42.Fix

          House 42      Fix

English          .noun  .noun  .verb

VBA    .object .child object  .meth


When working in VBA tell Access exactly what to do.  Don’t assume anything.



 

 

Code Window

Project

Explorer

 


Title bar, Menu bar and Standard toolbar

 

The centre of the Visual basic environment.  The menu bar and toolbar can be hidden of customized.  Closing this window closes the program.

 

Project Explorer

Provides an organized view of the files and components belonging to the project. 

If hidden the Project Explorer can be displayed by pressing Ctrl + R

 

Properties Window

Provides a way to change attributes of forms and controls (e.g. name, colour, etc). If hidden press F4 to display.

 

Code Window

Used to edit the Visual basic code. Press F7 and it will open an object selected in Project Explorer.  Close the window with the Close button that appears on the menu bar.

 


 

 


If the Visual Basic Help files are installed, by pressing F1, a help screen displays explaining the feature that is currently active:



Alternatively use the Ask a Question box on the menu bar to as a quick way to find help on a topic.

To close the Visual Basic Editor use one of the following:

·       Open the File menu; select Close and Return to Microsoft Access

 

OR

 

·       Press Alt + Q

 

OR

 

·       Click  Close in the title bar.

 

 

Procedure is a term that refers to a unit of code created to perform a specific task.  In Access, procedures are stored in objects called Modules.


Standard modules can be used to store procedures that are available to all objects in your application

Within a project you can create as many standard modules as required.  You should store related procedures together within the same module.

Standard modules are also used to declare global variables and constants.

To create a standard module in the VB Editor:

·       Display the Properties window if necessary

·       In the Properties window change the name of the module

A procedure is a named set of instructions that does something within the application.

To execute the code in a procedure you refer to it by name from within another procedure.  This is known as Calling a procedure.  When a procedure has finished executing it returns control to the procedure from which it was called.

There are two genera types of procedures:

Sub procedures

perform a task and return control to the calling procedure

 

Function procedures

perform a task and return a value, as well as control, to the calling procedure

 

If you require 10 stages to solve a problem write 10 sub procedures.  It is easier to find errors in smaller procedures than in a large one.

The procedures can then be called, in order, from another procedure.

There are rules and conventions that must be followed when naming procedures in Visual Basic.

While rules must be followed or an error will result, conventions are there as a guideline to make your code easier to follow and understand.

The following rules must be adhered to when naming procedures:

·       Maximum length of the name is 255 characters

 

·       The first character must be a letter

 

·       Must be unique within a given module

 

·       Cannot contain spaces or any of the following characters: . , @ & $ # ( ) !

 

You should consider these naming conventions when naming procedures:

·        As procedures carry out actions, begin names with a verb

 

·        Use the proper case for the word within the procedure name

 

·        If procedures are related try and place the words that vary at the end of the name

 

Following these conventions, here is an example of procedure names:

 

PrintClientList

 

GetDateStart

 

GetDateFinish

 

Most Access tasks can be automated by creating procedures.  This can be done by either recording a macro or entering the code directly into the VB Editor’s Code window.

Sub procedures have the following syntax:

[Public/Private] Sub ProcedureName ([argument list])

 

Statement block

 

End Sub

Public indicates procedure can be called from within other modules.  It is the default setting

Private indicates the procedure is only available to other procedures in the same module.

The Sub…End Sub structure can be typed directly into the code window or inserted using the Add Procedure dialog box.

To create a sub procedure:

·       Create or display the module to contain the new sub procedure

·       Click in the Code window

·       Type in the Sub procedure using the relevant syntax

Type in the word Sub, followed by a space and the Procedure name

Press Enter and VB inserts the parenthesis after the name and the End Sub line.

Below is an example of a basic sub procedure:



Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.53 secs.