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

< 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: $34.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.

variables

 

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)
Docmd.OpenTable
DLOOKUP
Exit Sub
Line Continuation Character
Variables
DIM ID As Long
On Error Resume Next
On Error Goto 0
Initializing Variables
MsgBox as a Function
vbYesNoCancel
vbYes, vbNo, vbCancel

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


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
 
 

Student Interaction: Microsoft Access Developer 3

Richard on 7/19/2017:  Microsoft Access TutorialsAccess Developer 3 continues our in-depth study of Visual Basic for Applications programming with Microsoft Access (Access VBA). If you're serious about building quality databases with Access, and you want to learn how to automate your database with VBA, then don't miss out on this course. Contents include: - 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 Click here for more information on Access Developer 3, including a course outline, sample videos, and more. This course was recorded using Access 2016, but most of the topics covered are valid for all versions of Access from 2003 on. This class follows Developer Level 2. NOTE: The next class in the series, Access Developer Level 4 is in production right now, and should be available soon. You can PRE-ORDER IT NOW on the Waiting List and get a discount when it's released. When you're finished with this class, if you want to keep learning Access, move up to my Access 304 class. Yes, this class is for Access 2003, but you shouldn't have any problems following along with it. PLUS, when Access Developer 4 is released, you'll get a FREE copy.
 

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

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP