Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   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   2 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?

Members

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!

Links

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

Resources

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

Questions?

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

Keywords

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 
2 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
2 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 
2 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
2 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
2 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.
 
Subscribe
 

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

12/4/2021Hangman!
12/3/2021Access Beginner 2
12/3/2021Access Beginner 2 Lessons
12/3/2021Access Beginner 2
11/30/2021Import Multiline Cells
11/30/2021Adam's Access Games
11/29/2021Prevent Close
11/28/2021Random
11/22/2021Currency Symbols
11/13/2021Access Developer 36
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
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
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
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