Send to a Colleague Print Bookmark

Microsoft Access 2007 - Visual Basic for Applications

Those with a sound knowledge of Microsoft Access can learn to develop programs in VisualBasic for Microsoft Access 2007. Re-use code blocks, create efficient coding structures and learn standard and consistent VBA coding syntax.

Quick Facts

 

$1,485 incl GST

Duration: 3 Days

Class Size: 10

Level: Advanced

Times: 9.00am to 5.00pm approx

 
Microsoft

Download Course Brochure

Access_2007_VBA.pdf

Other Microsoft Access 2007 Courses:

 

About the Course

This 3 day course teaches participants to develop programs in VBA for Microsoft Access 2007. A project is undertaken throughout the course to reinforce the concepts . The aim of the project is to put into practice the skills taught during formal sessions, and to foster good coding practices. Special emphasis will be placed on re-usability of code blocks, creation of efficient coding structures and application of standard and consistent VBA coding syntax.

Who should do this course?

This is an advanced level course designed for people who have a thorough working knowledge of Microsoft Access, but need to learn VBA Programming techniques to improve their skills and productivity.

Prerequisites

This course is designed for participants with little or no knowledge of programming, however a sound working knowledge of Access 2007 is essential, including formatting, reports, queries and relational databases.

Course Units

Unit 1: VBA Essentials
- Understanding The Programming Environment
- Exploring The Object Model
- Navigating With Forms
- Creating A StartUp Form
- The VBA Editor Window
- Working With The Project Explorer
- Working With The Properties Window
- Understanding Modules
- Viewing The Code Behind Forms
- Standard Code Modules
- Understanding Naming Conventions
Unit 2: VBA Subroutines
- Understanding Modules In Access
- Understanding Procedures
- Anatomy Of A Module
- Creating A Subroutine
- Creating A Function
- Calling Procedures
- Passing Parameters
- Returning Values
- Scoping Procedures
Unit 3:Using Variables
- Understanding Variables
- Understanding Data Types
- Creating And Using Variables
- Implicit And Explicit Declarations
- Working With Numbers In VBA
- Dealing With Overflows
- Working With Decimals In VBA
- Working With Dates In VBA
- Default Values
- Understanding The Scope Of Variables
- Procedure Level Scoping
- Module Level Scoping
- Passing Variables By Reference
- Passing Variables By Value
Unit 4: Making Decisions
- Understanding The If Statement
- Creating A Single-Line If Statement
- Creating A Block If Statement
- Creating Multiple If Statements
- Assignment: Creating If Statements
- Using If For Multiple Text Conditions
- Understanding The Select Case Statement
- A Simple Select Case Statement
- Value Ranges In Select Case Statements
- Using Select Case Statements With OR
Unit 5: Interacting with users
- Understanding Input Boxes
- Using The InputBox Function
- Using InputBox Function Arguments
- Understanding Message Boxes
- Creating A Simple Message Box
- Creating A Longer Message
- Breaking A Message Line
- Displaying Buttons And Icons
- Using The Message Box Function
- Responding To Different Buttons
Unit 6:The DoCmd Object
- Understanding DoCmd
- Navigating With DoCmd
- Moving Through Records
- Filtering Records With DoCmd
- Opening And Closing A Form With DoCmd
- Opening A Report With DoCmd
- Creating Variable Reports
Unit 7: Looping in VBA
- Understanding Loops
- Understanding For Loops
- Creating A While Loop
- Working With Counters
- Creating An Until Loop
- For…Each Loops
- Exiting From Loops
- For...Next Loops
- Assignment: Creating Loops
Unit 8: Debugging VBA
- Understanding Debugging
- Setting A Breakpoint
- Setting Additional Breakpoints
- Stepping Through A Procedure
- Viewing The Call Stack
- Using Locals And Immediate Windows
- Adding A Watch
Unit 9 : Form Validation
- Data Validation Overview
- Validating Between Fields
- Highlighting the Current Field
- Highlight ALL Required Fields
- Adding to Combo Boxes using the NotInList Event
- Value Lists
- Table/Query Lists (Single Selection in ComboBox)
- Table/Query Lists (Multiple Columns in ComboBox)
- Requesting a Change (via Email)
Unit 10: Controlling User Access Level
- Retrieving User Roles
- Using the Allow… Properties
- Disable / Enabling Controls and Menu Options
- Using OpenArgs
- The Tag Property
- The Form Timer Event
Unit 11: Setting References
- Setting References
- Available References
- Locating Other Libraries
- Late Vs. Early Binding
- Using Outlook – Early Binding
- Using Outlook – Late Binding
Unit 12: Using an External Reference - File Dialogs
- FileDialog Object Members
- Creating a File Dialog
- Selecting a Single File Only
- Creating a File Type Filter
- Selecting Multiple Files
- Creating a Generic File Dialog module
- Defining the File Types (as optional arguments)
- Storing the returned file path
- Storing Multiple Values – using an Array
- Extending the Project
Unit 13: Working with Files and Folders
- Features of the Microsoft Scripting Runtime Library
- Using the FileSystemObject
- Working with Folders
- Creating Folders
- Deleting Folders
- Checking for Contents of a Folder
- Consolidating the Create/Delete/Review Routines
- Copy Folder
- Move Folder
- Next Steps
- Working with Files
- Adding Files
- Writing To a Text File
- Copying and Moving Files
- Deleting Files
Unit 14: Audit Logging Routines
- Capturing User Login/Logout Details
- User Login Routine
- User LogOut Routine
- Logging Form/Report Interaction
- Logging the Opening Time
- Logging the Closing Time
- Retaining Full Data History
- Further Considerations
Unit 15: Error Handling
- VBA Error Handling
- Error Handling Logic
- Creating a Standard Error Handling Routine
- Logging Errors
- Extending Error Handling
- Keeping the User Informed of the System State
Unit 16: Code Commenting & Template Creation
- Adding Detailed Comments – A Structured Approach
- Creating a Database Template
- Importing Objects into the Template DB
- Exporting Objects as Text Files
Unit 17: Using the Access Developer Tools
- Creating a Database Template
Unit 18: Access Recordsets
- ADO
- The Connection Object
- Command Object
- RecordSet Object
- Removing References to SET Variables
- DAO
- Creating a DAO Recordset
- Working with DAO Recordsets
- Bound Forms & SubForms (Using Queries)
- Change From Bound To UnBound (Using RecordSets)
- Creating The Forms RecordSet
- Completing the Navigational Elements
- Adding New Records
- Editing Records
- Deleting Records
- Completing The Unbound Form
- Adding Error Trapping
- Dealing with Code Duplication

Upcoming Courses

Sydney

Level 11, 32 Walker Street
North Sydney
View map

Date:
02-04 May 12

Melbourne

Level 12, 379 Collins Street
Melbourne
View map

Date:
05-07 Mar 12
30 May - 01 Jun 12

Brisbane

C/- Support Technology, Level 6, 371 Queen Street
Brisbane
View map

Date:
11-13 Apr 12

Canberra

C/O Atlas Business Services, 21 Barry Drive
Turner
View map

Date: upon demand

Adelaide

C/- Mindfull Computer & Seminar, Level 4, 74 Pirie Street
Adelaide
View map

Date: upon demand

Perth

C/- Lansen Consulting Pty Ltd, Level 1, 484 Albany Highway
Victoria Park
View map

Date: upon demand
 

$1,485 incl GST

Duration: 3 Days

Class Size: 10

Level: Advanced

Times: 9.00am to 5.00pm approx

 
Man and woman sitting at a computer SEEK logo