Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

MS Access - Programming with VBA

( Duration: 3 Days )

The MS Access - Programming with VBA training course provides skills to use the VBA (Visual Basic for Applications) programming language to automate the database applications. You will learn about creating Sub Procedures and Functions and see how to call these blocks of code from an event occurring in Microsoft Access, such as a button being clicked or a user saving a record. You will be introduced to the Microsoft Access Object Model, which will allow to control all aspects of the application, including things like closing or opening forms, printing reports or validating user data entry. You will also be introduced to accessing data in the database through code by using Data Access Objects (DAO,) allowing the manipulation of data behind the scenes - with no user action needed. Finally, you will see how to debug the code and add error handling to ensure that unexpected errors don't force an application shutdown.

By attending MS Access - Programming with VBA workshop, delegates will learn to:

  • Create Sub Procedures and Functions
  • Attach code to user-initiated or application-initiated events
  • Control program flow by using If/Then and Looping structures
  • Access and modify data in the database directly using code
  • Debug code to find and fix programming errors
  • Implement error-handling code to catch and resolve run-time errors

  • Experience in creating and using tables, forms, reports and queries in Microsoft Access.
  • No programming experience is necessary.

This MS Access - Programming with VBA class is designed for experienced Access developers who want to make a start on VBA (Visual Basic for Applications) in order to produce databases to professional standards.

COURSE AGENDA

1

Getting Started

  • Introduction to Programming in Access
  • Why Program in Access?
  • Understanding the Development Environment
  • Using Visual Basic Help
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
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
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
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
6

Working with Recordsets

  • Declaring and Creating Object Variables
  • Working with the DAO Recordset Object
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
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
  • Working with Inline Error Handling

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X