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  
 
NEW: Microsoft Access Developer Level 4 and 5  - New MYOLP Pricing    dismiss
 
 

< Previous: Access Developer 3

Next: Access Developer 5 >

Access Developer Level 4

Developer-Level Microsoft Access Tutorial - 1 Hour, 35 Minutes
 
 
Access Developer 4 continues our focus on learning how to program the Visual Basic for Applications programming language (VBA) in Microsoft Access. Topics include:
 
access cd   - Notes on Order Details
  - DLOOKUP from Product Table
  -
Change Size of Field in OnGotFocus

  - Constants, Const Keyword
  - OnDblClick Event
  - Sales Commissions by Order Amt
  - Commission Range Brackets
  - DMAX and DLOOKUP together
  - Use SQL to Load Order List
  -
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 4
Versions: Recorded with Access 2016. Most of the material should work with all versions of Access from 2003 on.
Pre-Requisites: Access Developer Level 3 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, 35 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 adding notes (long text) to our order details. We can have notes for the order as a whole, but not for each line item. This information is stored in the product table. We will use DLOOKUP to pull it when we add the item to the order, and allow the user to edit it.

access

 

We will learn how to use the OnDblClick (on double click) to allow the user to make the field larger to see and edit the notes better. We'll modify the object's height and width properties. We will learn about variable scope - how certain variables only work inside a particular procedure, but others can work over an entire form as long as it's open.

ondblclick

 

We will then add these notes to the printed invoice as well.

invoice quotation notes

 

Next we will go back and work on our employee commissions form. Before we just had it so that the manager could type in an employee, a date, an amount, and log some commission. Now we will actually tie those commissions into the order system, so that you select an employee from a combo box, pick an order, and then the system will automatically calculate the commission amount and then track which orders have had the commissions paid.

We will start by setting up brackets for each employee so that the commission rate can be variable based on the amount of each order. So, for example, if employee 3 has an order that's $90 then she gets paid a 3% commission. However, a $350 order will get a 4% commission.

variable rate commissions

 

Then, we'll make it so that on the commissions form, you select an employee, then a list of their unpaid (commissions) orders will show up. Click an order and the data is all automatically calculated. Click the LOG button to save the info in the commissions table, and the list updates.

unpaid commissions

 

This is the 4th 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 4

00. Intro (3:09)

01. Add Notes to Order Details (22:15)
DLOOKUP Long Text Memo
Notes Field in OrderDetailT
Add to OrderDetailF
Make Size Change in OnGotFocus
Height, Width Properties
Change Detail Section Height
Variable Scope - Sub vs Form
Form Scope Variable to hold Height, Width
OnDblClick Event to Grow


02. Commissions by Order Amount 1 (22:33)
Modify CommissionT
Base Commission on Order
Employee Commission Table
Set up Brackets for Commission Ranges
Fix Sales Rep Combo Box
Query to Link Orders, Commissions, Cust
Order Picker Combo Box
03. Commissions by Order Amount 2 (43:50)
Change Order Combo to List Box
SQL Statement to Load List
Limit by Sales Rep
Query Employees w Unpaid Commissions
Limit Employee Combo to Unpaid Only
Lookup Order Total for Selected Order
Look that up in Commission Table
Log to Table with SQL INSERT INTO


04. Review (4:06)

 


 
Keywords: Access VBA, Visual Basic for Applications, microsoft access tutorial, microsoft access tutorial, microsoft access training, dlookup, dmax, notes on order detail, employee commissions based on order amount
 
 

Student Interaction: Microsoft Access Developer 4

Richard on 2/10/2018:  Microsoft Access TutorialsAccess Developer 4 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: - Notes on Order Details - DLOOKUP from Product Table - Change Size of Field in OnGotFocus - Constants, Const Keyword - OnDblClick Event - Sales Commissions by Order Amount - Commission Range Brackets - DMAX and DLOOKUP together - Use SQL to Load Order List - Lots more Click here for more information on Access Developer 4, 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 3. The next class in the series is Developer Level 5.
Kenny N on 2/14/2018: Thanks so much for the tip on the Dim statement! I never realized I was inadvertently dimming my variables as variants because I was not writing out my variable types individually. That explains some mysterious error messages I have been getting when trying to pass variables to subs and functions!
 

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