25 hours ago: New Feature: you can now upload your Profile Picture to the site. Check it out!  Dismiss
 
Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   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: This class was recorded with Microsoft Access 2016. The material is valid for Access 2007 up to 2021. Access has not changed that much over the years.
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: $39.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
 
 

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 3/18/2024 10:02:05 PM. PLT: 0s