Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  

< Previous: Access Developer 2

Next: Access Developer 4 >

Access Developer Level 3

Developer-Level Microsoft Access Tutorial - 1 Hour, 23 Minutes
Access Developer 3 continues our focus on learning how to program the Visual Basic for Applications programming language (VBA) in Microsoft Access. Topics include:
access cd   - Variables, Dim, Initializing
  - MsgBox as a Function
Random Numbers, Rnd, Randomize

  - Constants, Const Keyword
  - InputBox Function
  - Math Quiz Form
  - For Next Loops
  - Data Types in VBA
  - Quick Add Sales Rep
Lots more

Order Now

If you would like a preview of what's covered in this class,
click here to watch the first and last lessons of this course (free of charge), or scroll down for more information.


Access Developer Level 3
Versions: Recorded with Access 2016. Most of the material should work with all versions of Access from 2003 on.
Pre-Requisites: Access Developer Level 2 strongly recommended, as you should watch all of my classes in order. However, if you're skipping around, you should have at least completed the Beginner series and the first 3 or 4 levels of the Expert series where I start to cover functions.
Running Time: 1 Hour, 23 Minutes
Cost: $35.99

This class continues our look at programming in Visual Basic for Applications in Microsoft Access (VBA, or Access VB). We will begin by exploring Variables, which are blocks of memory you can allocate to keep track of values in your code without having to use a table or form field. We will learn the OpenTable command, do more with DLOOKUP, Exit Sub, learn how to properly DIM our variables, learn a little more about error handling with On Error Resume Next and On Error Goto 0, we'll see how MsgBox can be used as a Function to return a value, either vbYes, vbNo, or vbCancel.



Next, we'll learn how to generate random numbers in VBA using the Rnd and Randomize commands. We'll build a math quiz form where the system will generate two random numbers to be added. The user will then enter the answer and your program will check to see if they are correct. We'll learn about Const (constants) that are like variables but have a fixed value.

random numbers


Next we will learn about For Next Loops, which you can use to repeat actions a specific number of times. We'll make another math quiz form that asks the user X number of math questions and calculates how many they got correct. We'll use the InputBox function to collect the answers. We'll learn about the Format function, and we'll see what all of the different data types are that can be used in VBA including Boolean, Integer, Long, Single, Double, Currency, Date, String, and Variant.

for next loop


Finally, we'll create a form to quickly add a sales rep from the commission form. This is handy if you're entering a bunch of commission records, and need to add a sales rep who isn't on the list. You don't have to find the employee form, open it, add the rep, close the commission form so it refreshes, and then pick the sales rep. This is one quick routine that does it for you. We'll use InputBox to collect the sales rep's info, store it in the table with an SQL statement, and refresh the combo box automatically.

quick add sales rep


This is the 3rd class in the Access Developer series. If you're serious about building quality databases with Access, and you want to learn how to automate your database with VBA Programming then don't miss out on this course. Of course, if you have any questions about whether or not this class is for you, please contact me.


Complete Outline - Access Developer Level 3

00. Intro (3:07)

01. Variables (22:12)
Exit Sub
Line Continuation Character
DIM ID As Long
On Error Resume Next
On Error Goto 0
Initializing Variables
MsgBox as a Function
vbYes, vbNo, vbCancel

02. Random Numbers (9:33)
Const - Constants
03. For Next Loops (21:47)
Looping Math Quiz
Set NumLoops
For Next
Format Function, Percent
Format Function, 0.0%
Data Types in Access VBA
Integer, Long Integer
Single, Double
Date, Date Time

04. Quick Add Sales Rep (21:10)
Add Link on Commission Form
InputBox First, Last, Com Rate
DCount, DMax, CDbl
Run Another Objects Event

05. Review (5:43)


Keywords: Access VBA, Visual Basic for Applications, microsoft access tutorial, microsoft access tutorial, microsoft access training, OpenTable, DIM variables, on error resume next, on error goto 0, vbYesNoCancel, vbYes, vbNo, vbCancel, Rnd, Randomize, Const, Int, Math Quiz, Random Numbers, InputBox, Format Function, Data Types

You may want to read these articles from the 599CD News:


Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn