Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS access reference

I am creating an Outlook Automation App using Ms Access. My question is: Is it possible to add references during runtime? How can this be done?

like image 779
Arnold Avatar asked Jan 31 '26 04:01

Arnold


1 Answers

Yes, instead of saying

new Outlook.Application

Say

CreateObject("Outlook.Application")

This switches it from early binding to late binding. A little slower, but it will work fine.

If you want intellisense to work properly, use early binding (the first form) while you are coding, and then switch it to late binding (the second form) when you are done.

like image 61
Robert Harvey Avatar answered Feb 02 '26 20:02

Robert Harvey