Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Directory > Access > Late Binding < Open Form | Text Messages >
Late Binding
By Richard Rost   Richard Rost on Twitter Richard Rost on LinkedIn Email Richard Rost   3 months ago

Early vs. Late Binding in Microsoft Access VBA

 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

In this video, I'll discuss the differences between early vs. late binding in Microsoft Access VBA. We'll see how to take the code from my Outlook Email video and change it from early to late binding for greater compatibility.

Bradley from Garland City, Arkansas (a Platinum Member) asks: I used the code in your Send Email from Access using Outlook video, and it works great on my PC, but a few people in the office get error messages. Could it be because they have different versions of Office installed?


There is no Extended Cut for this video, however Members get access to the Extended Cuts for ALL of my TechHelp videos, including the original Send Email video. I have posted an updated database file for the Gold Members to download with the late binding code.

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the database template from class plus get access to the Code Vault. If you signed up on YouTube you have to contact me so I can set up your account here on my web site. If you're not a member, Join Today!


Learn More

FREE Access Beginner Level 1
Access Level 2 for $1.00

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates


Mailing List - Get Emails When New Videos Released!
Consulting - Need Help with Your Database?


Please feel free to post your questions or comments below or submit them via the TechHelp page.


microsoft access, ms access, ms access tutorial, #msaccess, #microsoftaccess, #help, #howto, #tutorial, #learn, #lesson, #training, #database, early binding, late binding, early v late binding, static binding, dynamic binding, compile error, user-defined type not defined, variable not defined, object library, references, compile time, runtime, IntelliSense, dim as object, createitem, outlook.application, olmailitem, olformathtml


Item vs Object Upload Images   Link  
David Britz 
3 months ago
I'm also a little confused in how you declare the Outlook Object and the Mail item. For O you use create object and you type in a string. But for M you create an "item" even though you declared an "object," and had to look up a constant. What's the difference between the two?
Richard Rost
3 months ago
Objects can contact other objects. Outlook.Application is essentially the "top level" library object. It's almost as if you're pointing to Outlook ITSELF. Whereas a MailItem is PART OF the Outlook Application Object. There's a whole hierarchy of "stuff" that's part of other "stuff." I'll be spending more time in upcoming Developer lessons covering it. You can find the whole reference here.
Add a Reply
Still one thing I dont get Upload Images   Link  
David Britz 
3 months ago
I understand the early/late binding thing, but at the end of the day, don't you still need the object library? I would think that just because you don't select it at compile time, the Outlook 2016 library still has to be there or the commands won't run. What am I missing?
Richard Rost
3 months ago
Yes. It has to be there. However, with Late Binding you have much more flexibility with versioning. SOMEONE has to know what "Outlook.Application" is. But that call could be answered by the Office 12, 13, 14, 15, or 16 library.
Richard Rost
3 months ago
Basically, Access can utilize ALL of those libraries under Tools > References. You're just specifying which ones you want early binding for. All of those DLLs are "installed."
Add a Reply

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

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

1/28/2022Duplicate Record
1/28/2022ABCD Core Part 7
1/27/2022Work Days
1/27/2022MyNetWorkDays (Free)
1/27/2022Access Developer 35
1/26/2022Yes/No Fields
1/22/2022Next Appointment
1/18/2022Access B2 Upgrade
1/17/2022Access Beginner 2 Links

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
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
Keywords: TechHelp Access early binding, late binding, early v late binding, static binding, dynamic binding, compile error, user-defined type not defined, variable not defined, object library, references, compile time, runtime, IntelliSense, dim as object, createi  PermaLink