Visual Basic Fundamentals
The tutorial covers the following major topics:
The Microsoft Visual Basic Editor (VBE) and its debugging tools
Variables and constants and how to declare them
The primary object models defined in Access-the Access model, the Data Access Objects (DAO) model, and the ActiveX Data Objects (ADO) model. You'll need to understand these models to be able to manipulate objects such as forms, form controls, and recordsets in your code.
Visual Basic procedural statements:
Function and Sub statements
Property Get, Property Let, and Property Set (for use in class modules) statements
Flow-control statements, including Call, Do, For, If, and Select Case
DoCmd and RunCommand statements
On Error statements
A walkthrough of some example code you'll find in the sample databases
In this tutorial:
- Visual Basic Development Environment
- Visual Basic Editor Window
- Relationship Between Access and Visual Basic
- Visual Basic Debugging Tools
- Working with the Watch Window
- Variables and Constants
- Variable and Constant Scope
- Declaring Constants and Variables
- Dim Statement
- Enum Statement
- Event Statement
- Private Statement
- Public Statement
- Static Statement
- Type Statement
- Collections, Objects, Properties, and Methods
- DAO Architecture
- ADO Architecture
- Referencing Collections, Objects, and Properties
- Use Exclamation Points and Periods
- Assigning an Object Variable-Set Statement
- Object Methods
- Manipulating Complex Data Types Using DAO
- Working with ADO Recordsets
- Functions and Subroutines
- Sub Statement
- Understanding Class Modules
- Property Let
- Property Set
- Controlling the Flow of Statements
- Do...Loop Statement
- For...Next Statement
- For Each...Next Statement
- If...Then...Else Statement
- RaiseEvent Statement
- Stop Statement
- With...End Statement
- Running Macro Actions and Menu Commands
- Executing an Access Command
- Trapping Errors
- Working with 64-Bit Access Visual Basic for Applications
- Using LongPtr Data Types
- Supporting Older Versions of Access
- Using LongLong Data Types