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 1

Next: Access Developer 3 >

Access Developer Level 2

Developer-Level Microsoft Access Tutorial - 1 Hour, 22 Minutes
 
 
Access Developer 2 continues our focus on learning how to program the Visual Basic for Applications programming language (VBA) in Microsoft Access. Topics include:
 
access cd   - Building a Calculator Form
  - Basic Debug, On Error Resume Next
  -
Creating Subs with Parameters

  - Select Case Statements
  - Creating Functions
  - Returning Values from Functions
  - Comments, Line Continuation
  - More MsgBox Options
  - RunSQL, Insert Into
  -
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 2
Versions: Recorded with Access 2016. Most of the material should work with all versions of Access from 2003 on.
Pre-Requisites: Access Developer Level 1 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, 22 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 building a calendar form to perform basic arithmetic. We will learn about the VAL function, create buttons for the basic math operations, learn how the debugger works, avoid errors with the On Error Resume Next statement, talk more about If Then Else blocks, and Exit Sub.

access developer calculator

 

Next we will learn how to create our own Private Subroutines, learn how parameters to those subs work, learn about the Select Case statement as an alternative to If Then blocks, talk about proper code indentation, and more.

private sub parameters

 

Next we will build a form to track commissions for our sales reps. You will select an employee from a combo box, his commission rate will be filled in automatically, as will the sale date, you enter the sale amount, click calculate commission, and the exact amount will be calculated. Add optional notes. You will learn how to use the DropDown method to automatically open a combo box. We will learn how to create our own functions, return a value from those functions, and more.

functions

 

Finally, we will add a button to automatically add the calculated commissions from the previous lesson into a commission table. We will construct an SQL statement and use the RunSQL command and INSERT INTO to add that data to our table. We'll learn about comments, the line continuation character, more about MsgBox, vbInformation, and lots more.

sql statement insert into

 

This is the 2nd 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 2

00. Intro (2:20)

01. Calculator 1 (20:05)
Naming Buttons
String Concatenation
VAL() Function
Change Button Name, Edit Code
Add, Subtract Buttons
Multiply, Divide Buttons
Square Root, Exponents
Nth Root
Debugger
Divide by Zero Error
On Error Resume Next
If Then Else
Exit Sub


02. Calculator 2 (12:59)
Create Private Sub
Parameters to a Sub
Right Click > Definition for Sub
Select Case Statement
End Select
Proper Indenting
Tab / Shift Tab Multiple Lines
03. Commission Form 1 (27:00)
Sales Rep Combo Box
Commission Rate in Columns
AfterUpdate Event to Copy Rate
Docmd.GoToControl
Combo.DropDown
Calculate Commission Button
Create a Function
Return a Value
Boolean Values
Subs vs. Functions

04. Commission Form 2 (15:57)
Comments
VB Line Continuation _
MsgBox vbInformation
Warning if Sale Amount $0
DoCmd.RunSQL
INSERT INTO Statement
Set to Null after logging

05. Review (4:18)

 


 
Keywords: Access VBA, Visual Basic for Applications, microsoft access tutorial, microsoft access tutorial, microsoft access training, calculator, val, debugger, on error resume next, if then else, exit sub, private sub, parameters, select case, end select, indenting, gotocontrol, dropdown, create a function, boolean, subs, functions, comments, line continuation, runsql, insert into
 
 

Student Interaction: Microsoft Access Developer 2

Richard on 7/19/2017:  Microsoft Access TutorialsAccess Developer 2 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: - Building a Calculator Form - Basic Debug, On Error Resume Next - Creating Subs with Parameters - Select Case Statements - Creating Functions - Returning Values from Functions - Comments, Line Continuation - More MsgBox Options - RunSQL, Insert Into - Lots more Click here for more information on Access Developer 2, 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 1. The next course in the series is Access Developer 3.
 

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